public ActionResult CreateDirectory() { var path = Request.Form["path"] ?? string.Empty; path = DiskStorage.FileManagerCleanPath(path); var newDirName = Request.Form["newdirectoryname"] ?? string.Empty; newDirName = DiskStorage.FileManagerCleanPath(newDirName); var fullPath = path + "\\" + newDirName; DiskStorage.FileManagerCreateDirectory(HccApp.CurrentStore.Id, fullPath); var destination = Url.Content("~/DesktopModules/Hotcakes/API/mvc/filemanager?path=" + path); return(new RedirectResult(destination)); }
public ActionResult CreateDirectory() { string path = Request.Form["path"] ?? string.Empty; path = DiskStorage.FileManagerCleanPath(path); string newDirName = Request.Form["newdirectoryname"] ?? string.Empty; newDirName = DiskStorage.FileManagerCleanPath(newDirName); string fullPath = path + "\\" + newDirName; DiskStorage.FileManagerCreateDirectory(MTApp.CurrentStore.Id, fullPath); string destination = Url.Content("~/bvadmin/content/filemanager?path=" + path); return(new RedirectResult(destination)); }