#19453 Implementing FolderExists for IStorageProvider.

Work Item: 19453

--HG--
branch : 1.x
This commit is contained in:
Sipke Schoorstra
2013-03-05 15:11:10 +01:00
parent 320fd3c8a4
commit d6ba9830b3
2 changed files with 6 additions and 1 deletions

View File

@@ -101,6 +101,12 @@ namespace Orchard.Azure {
}
}
public bool FolderExists(string path) {
using (new HttpContextWeaver()) {
return Container.BlobExists(String.Concat(_root, path));
}
}
public IEnumerable<IStorageFile> ListFiles(string path) {
path = path ?? String.Empty;

View File

@@ -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);