You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Robert07's avatar
Robert07
Helpful | Level 5
5 years ago

New folder path not found

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

  • Robert07's avatar
    Robert07
    5 years ago

    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.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    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's avatar
      Robert07
      Helpful | Level 5

      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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!