mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Fixing folder creation on Azure
--HG-- branch : 1.x
This commit is contained in:
@@ -156,7 +156,13 @@ namespace Orchard.Azure {
|
||||
|
||||
public void TryCreateFolder(string path) {
|
||||
EnsurePathIsRelative(path);
|
||||
CreateFile(Combine(path, FolderEntry));
|
||||
using (new HttpContextWeaver()) {
|
||||
if (Container.DirectoryExists(String.Concat(_root, path))) {
|
||||
return;
|
||||
}
|
||||
|
||||
CreateFile(Combine(path, FolderEntry));
|
||||
}
|
||||
}
|
||||
|
||||
public void CreateFolder(string path) {
|
||||
|
Reference in New Issue
Block a user