cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Great and all as it is to hear how we use Dropbox, we want to know how you use it! Day to day, big projects, sharing files with friends and family - we want to know about it.

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

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

Re: New folder path not found

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.

View solution in original post

2 Replies 2

Re: New folder path not found

Здравко
Super Collaborator | 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.

Re: New folder path not found

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.

Who's talking

Top contributors to this post

  • User avatar
    Robert07 Helpful | Level 5
  • User avatar
    Здравко Super Collaborator | Level 20
What do Dropbox user levels mean?
Need more support?