Beispiel #1
0
 internal FileSmbProperties(RawStorageFileProperties rawStorageFileProperties)
 {
     FileAttributes    = ShareExtensions.ToFileAttributes(rawStorageFileProperties.FileAttributes);
     FilePermissionKey = rawStorageFileProperties.FilePermissionKey;
     FileCreatedOn     = rawStorageFileProperties.FileCreationTime;
     FileLastWrittenOn = rawStorageFileProperties.FileLastWriteTime;
     FileChangedOn     = rawStorageFileProperties.FileChangeTime;
     FileId            = rawStorageFileProperties.FileId;
     ParentId          = rawStorageFileProperties.FileParentId;
 }
Beispiel #2
0
 internal FileSmbProperties(RawStorageFileProperties rawStorageFileProperties)
 {
     FileAttributes    = NtfsFileAttributes.Parse(rawStorageFileProperties.FileAttributes);
     FilePermissionKey = rawStorageFileProperties.FilePermissionKey;
     FileCreationTime  = rawStorageFileProperties.FileCreationTime;
     FileLastWriteTime = rawStorageFileProperties.FileLastWriteTime;
     FileChangeTime    = rawStorageFileProperties.FileChangeTime;
     FileId            = rawStorageFileProperties.FileId;
     ParentId          = rawStorageFileProperties.FileParentId;
 }
Beispiel #3
0
 internal StorageFileProperties(RawStorageFileProperties rawStorageFileProperties)
 {
     _rawStorageFileProperties = rawStorageFileProperties;
     SmbProperties             = new FileSmbProperties(rawStorageFileProperties);
 }
Beispiel #4
0
 /// <summary>
 /// Creates a new StorageFileProperties instance for mocking.
 /// </summary>
 public static StorageFileProperties StorageFileProperties(RawStorageFileProperties rawStorageFileProperties)
 => new StorageFileProperties(rawStorageFileProperties);
Beispiel #5
0
 internal StorageFileProperties(RawStorageFileProperties rawStorageFileProperties)
 {
     this._rawStorageFileProperties = rawStorageFileProperties;
     this.SmbProperties             = new FileSmbProperties(rawStorageFileProperties);
 }