dropbox / dbxcli

A command line client for Dropbox built using the Go SDK
Other
1.04k stars 102 forks source link

Cannot ls the root of the app folder #209

Open bwesen opened 3 months ago

bwesen commented 3 months ago

When I do dbxcli ls, it just gives me:

Error: Error in call to API function "files/get_metadata": request body: path: The root folder is unsupported.

I can ls individual files correctly and I can upload files, but I can't list the app folder.

The app has the metadata r/w and content r/w Permissions and the oauth2 refresh token is newly minted.

It works fine if I do ls of any folder within the app folder, but not the app folder itself.

I googled a bit and found that in the v2 dbox API you are not allowed to use get_metadata on the root folder anymore, instead you're supposed to use the list_folders API call, so maybe dbxcli is just trying some old API tricks?

jaraco commented 1 month ago

What is the app folder?

When I run dbxcli ls, I get a listing of the contents of the root of my dropbox.