SetLastAccessTime() public abstract method

public abstract SetLastAccessTime ( string fullPath, DateTimeOffset time, bool asDirectory ) : void
fullPath string
time DateTimeOffset
asDirectory bool
return void
Exemplo n.º 1
0
 public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)
 => FileSystem.SetLastAccessTime(Path.GetFullPath(path), GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: false);
Exemplo n.º 2
0
        public static void SetLastAccessTimeUtc(string path, DateTime lastAccessTimeUtc)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetLastAccessTime(fullPath, File.GetUtcDateTimeOffset(lastAccessTimeUtc), asDirectory: true);
        }
Exemplo n.º 3
0
 public static void SetLastAccessTime(string path, DateTime lastAccessTime)
 => FileSystem.SetLastAccessTime(Path.GetFullPath(path), lastAccessTime, asDirectory: false);
Exemplo n.º 4
0
        public static void SetLastAccessTime(string path, DateTime lastAccessTime)
        {
            string fullPath = Path.GetFullPath(path);

            FileSystem.SetLastAccessTime(fullPath, lastAccessTime, asDirectory: true);
        }