Пример #1
0
        public JsonResult GetFileList(string currPath)
        {
            Tools tools = new Tools(_siteConfig);

            return(Json(FileSugar.List(tools.GetPath(currPath))));
        }
Пример #2
0
 public IActionResult Index()
 {
     ViewBag.FileList = FileSugar.List(_siteConfig.Value.RootPath);
     ViewBag.Host     = _siteConfig.Value.Info;
     return(View());
 }