public abstract SetLastWriteTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void | ||
fullPath | string | |
time | DateTimeOffset | |
asDirectory | bool | |
return | void |
public static void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc) => FileSystem.SetLastWriteTime(Path.GetFullPath(path), GetUtcDateTimeOffset(lastWriteTimeUtc), asDirectory: false);
public static void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc) { string fullPath = Path.GetFullPath(path); FileSystem.SetLastWriteTime(fullPath, File.GetUtcDateTimeOffset(lastWriteTimeUtc), asDirectory: true); }
public static void SetLastWriteTime(string path, DateTime lastWriteTime) => FileSystem.SetLastWriteTime(Path.GetFullPath(path), lastWriteTime, asDirectory: false);
public static void SetLastWriteTime(string path, DateTime lastWriteTime) { string fullPath = Path.GetFullPath(path); FileSystem.SetLastWriteTime(fullPath, lastWriteTime, asDirectory: true); }