diff --git a/src/Orchard.Azure/AzureFileSystem.cs b/src/Orchard.Azure/AzureFileSystem.cs index a01503af3..288e2fcec 100644 --- a/src/Orchard.Azure/AzureFileSystem.cs +++ b/src/Orchard.Azure/AzureFileSystem.cs @@ -101,6 +101,12 @@ namespace Orchard.Azure { } } + public bool FolderExists(string path) { + using (new HttpContextWeaver()) { + return Container.BlobExists(String.Concat(_root, path)); + } + } + public IEnumerable ListFiles(string path) { path = path ?? String.Empty; diff --git a/src/Orchard.Azure/FileSystems/Media/AzureBlobStorageProvider.cs b/src/Orchard.Azure/FileSystems/Media/AzureBlobStorageProvider.cs index 47281684d..e4a4fdc3c 100644 --- a/src/Orchard.Azure/FileSystems/Media/AzureBlobStorageProvider.cs +++ b/src/Orchard.Azure/FileSystems/Media/AzureBlobStorageProvider.cs @@ -12,7 +12,6 @@ namespace Orchard.Azure.FileSystems.Media { public AzureBlobStorageProvider(ShellSettings shellSettings, CloudStorageAccount storageAccount) : base("media", shellSettings.Name, false, storageAccount) { } - public bool TrySaveStream(string path, Stream inputStream) { try { SaveStream(path, inputStream);