Exemplo n.º 1
0
        public AzureListFileWrapper(ICloudBlob blob, AzureListDirectoryWrapper parent)
        {
            this.blob = blob;
            var lastSlash = blob.Name.LastIndexOf('/');

            if (lastSlash >= 0)
            {
                this.name = blob.Name.Substring(lastSlash + 1);
            }
            else
            {
                this.name = blob.Name;
            }
            this.parent = parent;
        }
Exemplo n.º 2
0
 public AzureListDirectoryWrapper(CloudBlobDirectory blobDirectory, AzureListDirectoryWrapper parent = null)
 {
     this.ParentDirectory = parent;
     this.fullName        = blobDirectory.Prefix;
 }