public abstract SetLastAccessTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void | ||
fullPath | string | |
time | DateTimeOffset | |
asDirectory | bool | |
return | void |
public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc) => FileSystem.SetLastAccessTime(Path.GetFullPath(path), GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: false);
public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc) { string fullPath = Path.GetFullPath(path); FileSystem.SetLastAccessTime(fullPath, File.GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: true); }
public static void SetLastAccessTime(string path, DateTime lastAccessTime) => FileSystem.SetLastAccessTime(Path.GetFullPath(path), lastAccessTime, asDirectory: false);
public static void SetLastAccessTime(string path, DateTime lastAccessTime) { string fullPath = Path.GetFullPath(path); FileSystem.SetLastAccessTime(fullPath, lastAccessTime, asDirectory: true); }