mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user