示例#1
0
 /// <summary>
 /// Sets the standard file information for a file.
 /// </summary>
 /// <param name="path">The full path to the file or directory to query.</param>
 /// <param name="info">The standard file information.</param>
 public void SetFileStandardInformation(string path, WindowsFileInformation info)
 {
     throw new NotSupportedException();
 }
示例#2
0
 /// <summary>
 /// Sets the standard file information for a file.
 /// </summary>
 /// <param name="path">The full path to the file or directory to query.</param>
 /// <param name="info">The standard file information.</param>
 public void SetFileStandardInformation(string path, WindowsFileInformation info)
 {
     using (new NtfsTransaction())
     {
         UpdateStandardInformation(
             path,
             delegate(StandardInformation si)
             {
                 si.CreationTime = info.CreationTime;
                 si.LastAccessTime = info.LastAccessTime;
                 si.MftChangedTime = info.ChangeTime;
                 si.ModificationTime = info.LastWriteTime;
                 si.FileAttributes = StandardInformation.SetFileAttributes(info.FileAttributes, si.FileAttributes);
             });
     }
 }
示例#3
0
 /// <summary>
 /// Sets the standard file information for a file.
 /// </summary>
 /// <param name="path">The full path to the file or directory to query.</param>
 /// <param name="info">The standard file information.</param>
 public void SetFileStandardInformation(string path, WindowsFileInformation info)
 {
     throw new NotSupportedException();
 }