public ActionResult <IEnumerable <FsObjectInfo> > Get()
        {
            var top = new FsObjectInfo {
                Value = "Files",
                ID    = "/",
                Type  = "folder",
                Data  = MarkFolders(_drive.List("/")),
                Open  = true
            };

            return(Ok(new FsObjectInfo[] { top }));
        }
示例#2
0
        public ActionResult <IEnumerable <FsObjectInfo> > Get()
        {
            var top = new FsObjectInfo {
                Value = "Files",
                ID    = "/",
                Type  = "folder",
                Data  = _drive.List("/", new ListConfig {
                    Nested = true, SubFolders = true
                }),
                Open = true
            };

            return(Ok(new FsObjectInfo[] { top }));
        }