cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

New folder path not found

New folder path not found

Robert07
Helpful | Level 5
Go to solution

Hello,

I'm using curl to list subfolders like this which works great for folders that existed before my app was created:

curl -X POST https://api.dropboxapi.com/2/files/list_folder --header "Authorization: Bearer <my bearer token>" --header "Content-Type: application/json" --data "{\"path\": \"/vendor photos/SAND DESERT RIVER/\"}"

But after a folder called METAL FX(MFX ) was created under vendor photos in dropbox I get a file not found when I try to list what is in it using this:

curl -X POST https://api.dropboxapi.com/2/files/list_folder --header "Authorization: Bearer <my bearer token>" --header "Content-Type: application/json" --data "{\"path\": \"/vendor photos/METAL FX(MFX )/\"}"

I thought maybe the parentheses were trouble but we tested with a folder called 820417-P under SAND DESERT RIVER and when I looked for it using this:

curl -X POST https://api.dropboxapi.com/2/files/list_folder --header "Authorization: Bearer <my bearer token>" --header "Content-Type: application/json" --data "{\"path\": \"/vendor photos/SAND DESERT RIVER/\"}"

I saw all the previous folders but not the new one.  How can we make it so I can download new subfolders and files using an existing app with the api?

Thanks,

Robert

1 Accepted Solution

Accepted Solutions

Robert07
Helpful | Level 5
Go to solution

Thanks for the suggestion, but the issue was the app folder was not the one being modified which is why the app could not see changes.  The account the app had access to tried to share the app folder with another account but was unable to.  I'll need to create a new app with full account permission.

View solution in original post

2 Replies 2

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

Hi @Robert07,

Probably you have entered part of the name in a wrong way. To be sure everything is fine, just enumerate the basic folder using:

curl -X POST https://api.dropboxapi.com/2/files/list_folder --header "Authorization: Bearer <your bearer token>" --header "Content-Type: application/json" --data "{\"path\": \"/vendor photos\"}" | jq '.entries[] | {id, name}'

The result will be all directory entries (files and folders, little bit filtered for better readability). Find the one you want to enumerate and place the correct name or, even better, use the id to address it. :wink:

Hope this helps.

Robert07
Helpful | Level 5
Go to solution

Thanks for the suggestion, but the issue was the app folder was not the one being modified which is why the app could not see changes.  The account the app had access to tried to share the app folder with another account but was unable to.  I'll need to create a new app with full account permission.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Robert07 Helpful | Level 5
  • User avatar
    Здравко Legendary | Level 20
What do Dropbox user levels mean?