/// <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(); }
/// <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); }); } }
/// <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(); }