Ejemplo n.º 1
0
 public static void FixTimestamp(FileSystemInfo path, DateTime fileTime, IOErrorDelegaty delegaty)
 {
     try {
         path.CreationTime   = fileTime;
         path.LastAccessTime = fileTime;
         path.LastWriteTime  = fileTime;
     }
     catch (Exception e) {
         delegaty?.Invoke(e, path);
     }
 }
Ejemplo n.º 2
0
 public static void FixTimestamp(FileSystemInfo path, IOErrorDelegaty delegaty) => FixTimestamp(path, DefaultTimestamp, delegaty);