SetLastWriteTime() public abstract method

public abstract SetLastWriteTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
return void
示例#1
0
 public static void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc)
 => FileSystem.SetLastWriteTime(Path.GetFullPath(path), GetUtcDateTimeOffset(lastWriteTimeUtc), asDirectory: false);
示例#2
0
        public static void SetLastWriteTimeUtc(string path, DateTime lastWriteTimeUtc)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetLastWriteTime(fullPath, File.GetUtcDateTimeOffset(lastWriteTimeUtc), asDirectory: true);
        }
示例#3
0
 public static void SetLastWriteTime(string path, DateTime lastWriteTime)
 => FileSystem.SetLastWriteTime(Path.GetFullPath(path), lastWriteTime, asDirectory: false);
示例#4
0
        public static void SetLastWriteTime(string path, DateTime lastWriteTime)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetLastWriteTime(fullPath, lastWriteTime, asDirectory: true);
        }