Esempio n. 1
0
        public AzureBlobVirtualDirectory(AzureBlobVirtualFiles pathProvider, string dirPath)
            : base(pathProvider)
        {
            this.PathProvider = pathProvider;
            this.DirPath      = dirPath;

            if (dirPath == "/" || dirPath.IsNullOrEmpty())
            {
                return;
            }

            var separatorIndex = dirPath.LastIndexOf(pathProvider.RealPathSeparator, StringComparison.Ordinal);

            ParentDirectory = new AzureBlobVirtualDirectory(pathProvider,
                                                            separatorIndex == -1 ? string.Empty : dirPath.Substring(0, separatorIndex));
        }
 public AzureBlobVirtualFile(AzureBlobVirtualFiles owningProvider, IVirtualDirectory directory)
     : base(owningProvider, directory)
 {
     this.pathProvider = owningProvider;
     this.container    = pathProvider.Container;
 }