예제 #1
0
        public AzureBlobFileSystemEntry(AzureBlobFileSystem fileSystem, IListBlobItem item)
        {
            FileSystem = fileSystem;
            Item       = item;
            if (Item.GetType().Name == "CloudBlobDirectory")
            {
                IsFolder = true;
            }
            else
            {
                IsFolder = false;
            }

            Permissions = new GenericUnixPermissions(
                new GenericAccessMode(true, true, IsFolder),
                new GenericAccessMode(true, true, IsFolder),
                new GenericAccessMode(true, true, IsFolder));
        }
 public AzureBlobDirectoryEntry(AzureBlobFileSystem fileSystem, CloudBlobDirectory directory, bool isRoot)
     : base(fileSystem, directory)
 {
     IsRoot = isRoot;
 }
예제 #3
0
 public AzureBlobFileEntry(AzureBlobFileSystem fileSystem, CloudBlockBlob item, long?fileSize)
     : base(fileSystem, item)
 {
     Size = fileSize ?? (long?)item.Properties.Length ?? 0;
 }