예제 #1
0
        public JsonResult GetFolderInfo(string path, bool includeRoot)
        {
            if (string.IsNullOrEmpty(path))
            {
                return(null);
            }

            var model = FolderManager.GetInfo(path);
            var nodes = ConvertToNodeViewModel(model, includeRoot);
            var res   = new TreeViewModel {
                factor = nodes, status = true, prompt = string.Empty
            };

            return(Json(res, JsonRequestBehavior.AllowGet));
        }