public abstract void SetCreationTime(string fullPath, DateTimeOffset time, bool asDirectory); public abstract DateTimeOffset GetLastAccessTime(string fullPath);
public static void SetCreationTimeUtc(string path, DateTime creationTimeUtc) { string fullPath = Path.GetFullPath(path); FileSystem.SetCreationTime(fullPath, File.GetUtcDateTimeOffset(creationTimeUtc), asDirectory: true); }