mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19453 Implementing FolderExists for IStorageProvider.
Work Item: 19453 --HG-- branch : 1.x
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user