cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cannot get list of files .NET

cannot get list of files .NET

brtdvrs
Explorer | Level 4
Go to solution

I think my code is simple:

string token = "sl.<REDACTED>";

 

var dbx = new DropboxClient(token);

var res = await dbx.Files.ListFolderAsync(path: "");
foreach (var entry in res.Entries)
{
Console.WriteLine(entry.Name);
}

if have no entries (Count=0) here.

I have 4 folders and 1 file in in my dropbox folder. 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

@brtdvrs As Здравко said, you may have registered your app for "app folder" access, in which case it would only be able to access the contents of the special app folder that gets created for it automatically. You can find more information here. App folders are empty by default.

View solution in original post

3 Replies 3

Здравко
Legendary | Level 20
Go to solution

Hi @brtdvrs,

Does your application able to access your entire account or access only your App' folder only? 🧐 If the access is restricted, your can't see anything outside your App's folder! Recreate the application if you set it's access restricted by mistake. 😉

 Hope this gives direction.

brtdvrs
Explorer | Level 4
Go to solution
I have it restricted to App folder, so I created a folder with the same name on my Dropbox, that’s the way to do i guess ?

Greg-DB
Dropbox Staff
Go to solution

@brtdvrs As Здравко said, you may have registered your app for "app folder" access, in which case it would only be able to access the contents of the special app folder that gets created for it automatically. You can find more information here. App folders are empty by default.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    brtdvrs Explorer | Level 4
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?