The path_filestat_set_times()
function allows updating the time metadata (last accessed time and last modified time) for a file or directory specified by a path relative to the given directory.
On POSIX systems, a similar functionality is provided by the utimensat()
function. It updates the timestamps (access time and modification time) of a file or directory with nanosecond precision.
Note
The path_filestat_set_times()
function allows updating the time metadata (last accessed time and last modified time) for a file or directory specified by a path relative to the given directory. It checks if the specified directory has the necessary rights and updates the timestamps accordingly. On POSIX systems, a similar functionality is provided by the utimensat()
function.