Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
santosh33
2 years agoNew member | Level 2
How can I figure out the path?
I have a directory called App and inside it there is another directory crowpro (App/crowpro). But when I try to test
dbx.filesListFolder({path: ''})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.log(error);
}); I get
error: {
error_summary: 'path/not_found/...',
error: { '.tag': 'path', path: [Object] }
}
2 Replies
Replies have been turned off for this discussion
- Здравко2 years agoLegendary | Level 20
Hi santosh33,
Hm... 🤔 Let's make it sure: you're calling above code as is - with empty path - and get that error. Is it so or not exactly? 🧐 If not exactly, post the actual code as is. Also, say it clear: is your application with full account access or with application folder access (and probably called crowpro)?
- Greg-DB2 years ago
Dropbox Community Moderator
santosh33 As Здравко asked, is that the actual path you're calling with? Using an empty string "" as the path shouldn't result in a "path/not_found" error.
For reference though, a "path/not_found" Dropbox API error indicates that the API call failed because there was nothing currently found at the specified
pathin the connected account under the relevant root. For example, this can happen if there's a mistake or typo in thepathvalue the app supplies, if the file/folder has been renamed, moved, or deleted from that path, if the app is not connected to the correct account for that particular path, etc.When specifying the path, make sure you provide the full and accurate path for the desired file/folder under the relevant root. For example, if you have a file named "example.csv" inside a folder named "folder", the path would be
"/folder/example.csv". You can find more information on path formats here.Here are several things you can check in particular to debug this:
- Make sure you're using a currently accurate
pathvalue: You can use filesListFolder and filesListFolderContinue to list the contents of a folder so you can check what the correctpathvalues would be for items in those folder(s). To list the root, setpathto the empty string""when calling filesListFolder. You can use thepath_loweroridvalues returned for the files/folders in that folder to interact with those files/folders.
- Make sure you're connected to the correct account for the
pathvalue you're using: You can use usersGetCurrentAccount to check which account the app is connected to.
- Make sure you're using app folder-relative paths, if your app is registered for the "app folder" access type: Apps with the "app folder" access type can only access the contents of the special app folder that gets automatically created for it. If your app has the "app folder" access type, then it will only be able to access files in the app folder, and the root for any path value supplied by that app will automatically be the app folder root. You can find more information on app permissions here. For example, If your app has the app folder access type and you're trying to access something you can see on the Dropbox web site at
"/Apps/<app folder name>/folder/example.csv", you should only send thepathvalue as"/folder/example.csv". Alternatively, if your app is registered for the "app folder" access type but you need to access contents outside the app folder, you'll need to use a different app registration with the full Dropbox access type instead.
- Make sure you're accessing the relevant root: When using an app with the "full Dropbox" access type, API calls default to the member folder, but if you're trying to access the "team space" (only applicable to members of a team with the "team space" configuration), you'll need to configure that as the root explicitly, as covered in the Team Files Guide.
- Make sure you're using a currently accurate
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!