Set both access and modification time by path to the same value.

Synopsis

Declared in <llvm/Support/FileSystem.h>

std::error_code
setLastAccessAndModificationTime(
    Twine const& Path,
    TimePoint<> Time);

Return Value

errc::success if the file times were successfully set, otherwise a platform‐specific error_code or errc::function_not_supported on platforms where the functionality isn't available.

Parameters

Name

Description

Path

Path of the file or directory whose timestamps are updated.

Time

New access and modification time.

Created with MrDocs