Exemple #1
0
        public ActionResult DeleteDirectory()
        {
            var path = Request.Form["path"] ?? string.Empty;

            path = DiskStorage.FileManagerCleanPath(path);
            var deletePath = Request.Form["deletepath"] ?? string.Empty;

            deletePath = DiskStorage.FileManagerCleanPath(deletePath);

            if (!DiskStorage.FileManagerIsSystemPath(deletePath))
            {
                DiskStorage.FileManagerDeleteDirectory(HccApp.CurrentStore.Id, deletePath);
            }

            var destination = Url.Content("~/DesktopModules/Hotcakes/API/mvc/filemanager?path=" + path);

            return(new RedirectResult(destination));
        }
Exemple #2
0
        public ActionResult DeleteDirectory()
        {
            string path = Request.Form["path"] ?? string.Empty;

            path = DiskStorage.FileManagerCleanPath(path);
            string deletePath = Request.Form["deletepath"] ?? string.Empty;

            deletePath = DiskStorage.FileManagerCleanPath(deletePath);

            if (!DiskStorage.FileManagerIsSystemPath(deletePath))
            {
                DiskStorage.FileManagerDeleteDirectory(MTApp.CurrentStore.Id, deletePath);
            }

            string destination = Url.Content("~/bvadmin/content/filemanager?path=" + path);

            return(new RedirectResult(destination));
        }