简体   繁体   中英

Dropbox API C# Folder List Fails

I am using the example code:

 using (var temp = new DropboxClient("My Access Token"))
            {
                var list = await temp.Files.ListFolderAsync("");

                // show folders then files
                foreach (var item in list.Entries.Where(i => i.IsFolder))
                {
                Console.WriteLine("D  {0}/", item.Name);
            }

            foreach (var item in list.Entries.Where(i => i.IsFile))
            {
                Console.WriteLine("F{0,8} {1}", item.AsFile.Size, item.Name);
            }
        }

I get a empty list. What am I doing wrong? Thanks

The App Folder was indeed empty. Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM