public abstract DateTimeOffset GetLastWriteTime(string fullPath); public abstract void SetLastWriteTime(string fullPath, DateTimeOffset time, bool asDirectory);
public static DateTime GetLastWriteTimeUtc(string path) => FileSystem.GetLastWriteTime(Path.GetFullPath(path)).UtcDateTime;