cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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

Highlighted

New folder path not found

New member | Level 2

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
Highlighted

Re: New folder path not found

New member | Level 2

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
Highlighted

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.

Hope this helps.

Highlighted

Re: New folder path not found

New member | Level 2

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

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?