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.
pub fn setTimestampsNow(
dir: Dir,
io: Io,
sub_path: []const u8,
options: SetTimestampsNowOptions,
) SetTimestampsError!void
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,
});
}