#17347: Fix AzureFileSystem implementation

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-03-29 13:39:17 -07:00
parent f966a2d369
commit d65eda0f02
4 changed files with 32 additions and 20 deletions

View File

@@ -155,15 +155,13 @@ namespace Orchard.Azure {
}
public bool TryCreateFolder(string path) {
EnsurePathIsRelative(path);
using (new HttpContextWeaver()) {
if (Container.DirectoryExists(String.Concat(_root, path))) {
return true;
}
CreateFile(Combine(path, FolderEntry));
try {
CreateFolder(path);
return true;
}
catch {
return false;
}
return true;
}
public void CreateFolder(string path) {