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 }));
        }