internal FileSmbProperties(RawStorageDirectoryInfo rawStorageDirectoryInfo) { FileAttributes = NtfsFileAttributes.Parse(rawStorageDirectoryInfo.FileAttributes); FilePermissionKey = rawStorageDirectoryInfo.FilePermissionKey; FileCreationTime = rawStorageDirectoryInfo.FileCreationTime; FileLastWriteTime = rawStorageDirectoryInfo.FileLastWriteTime; FileChangeTime = rawStorageDirectoryInfo.FileChangeTime; FileId = rawStorageDirectoryInfo.FileId; ParentId = rawStorageDirectoryInfo.FileParentId; }
internal FileSmbProperties(FlattenedStorageFileProperties flattenedStorageFileProperties) { FileAttributes = NtfsFileAttributes.Parse(flattenedStorageFileProperties.FileAttributes); FilePermissionKey = flattenedStorageFileProperties.FilePermissionKey; FileCreationTime = flattenedStorageFileProperties.FileCreationTime; FileLastWriteTime = flattenedStorageFileProperties.FileLastWriteTime; FileChangeTime = flattenedStorageFileProperties.FileChangeTime; FileId = flattenedStorageFileProperties.FileId; ParentId = flattenedStorageFileProperties.FileParentId; }
internal FileSmbProperties(RawStorageFileProperties rawStorageFileProperties) { this.FileAttributes = NtfsFileAttributes.Parse(rawStorageFileProperties.FileAttributes); this.FilePermissionKey = rawStorageFileProperties.FilePermissionKey; this.FileCreationTime = rawStorageFileProperties.FileCreationTime; this.FileLastWriteTime = rawStorageFileProperties.FileLastWriteTime; this.FileChangeTime = rawStorageFileProperties.FileChangeTime; this.FileId = rawStorageFileProperties.FileId; this.ParentId = rawStorageFileProperties.FileParentId; }
/// <summary> /// Checks if two FileNtfsAttributes are equal to each other. /// </summary> /// <param name="other">TThe other instance to compare to.</param> /// <returns></returns> public bool Equals(NtfsFileAttributes other) => None == other.None && ReadOnly == other.ReadOnly && Hidden == other.Hidden && System == other.System && Normal == other.Normal && Directory == other.Directory && Archive == other.Archive && Temporary == other.Temporary && Offline == other.Offline && NotContentIndexed == other.NotContentIndexed && NoScrubData == other.NoScrubData;