pub fn setTimestampsNow( dir: Dir, io: Io, sub_path: []const u8, options: SetTimestampsNowOptions, ) SetTimestampsError!void
Sets the accessed and modification timestamps of the provided path to the current wall clock time.
The granularity that ultimately is stored depends on the combination of operating system and file system.
dir: Dir
io: Io
sub_path: []const u8
options: SetTimestampsNowOptions
2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044
pub fn setTimestampsNow( dir: Dir, io: Io, sub_path: []const u8, options: SetTimestampsNowOptions, ) SetTimestampsError!void { return io.vtable.dirSetTimestamps(io.userdata, dir, sub_path, .{ .follow_symlinks = options.follow_symlinks, .access_timestamp = .now, .modify_timestamp = .now, }); }
Sets the accessed and modification timestamps of the provided path to the current wall clock time.
The granularity that ultimately is stored depends on the combination of operating system and file system.