Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Rich F.5
10 months agoExplorer | Level 4
Can't Find Files in Ruby dropbox_api
Hi folks. I have an API issue here. I'm using the Ruby gem dropbox_api. I've registered a Dropbox project for a folder in my Dropbox root path. I can't seem to list the files inside that root....
- 10 months ago
Hello Rich F.5,
When you use an access token from an API app with the “app folder" access type, you are correct that the root path of your API calls refers to your app's dedicated folder. For example, if I create an API app named “TestAppFolder” with the “app folder” access type, I will only have access to the folder located at the path /Apps/TestAppFolder while using the access token connected to that API app. If the app folder "TestAppFolder" is empty, no files or folders will be listed when calling the Dropbox API.
Would you be able to cross-check if the app folder you're attempting to access contains any files or folders?
Please note that when using an API app with access type 'app folder', each user gets their own separate app folder in their account when they authorize the app to connect. The app folders for different users of an app do not sync with each other.
iNeil
Dropbox Community Moderator
10 months agoHello Rich F.5 ,
Thank you for the clarification. If you are using an API app with the access type "App folder," you will only have access to the dedicated app folder named after your app. For example, if your API app is named "myfolder," you can only access the dedicated app folder at /Apps/myfolder and not /myfolder, as it is outside the dedicated app folder assigned to the app.
Please note that if you are attempting to list the root contents of the dedicated app folder, you should specify the root using an empty string rather than the path "/". While using the access token from the API app with the access type "App folder", you can test the 2/files/list_folder endpoint using our Dropbox API explorer to check the content of the dedicated app folder.
If you are encountering a particular error, please provide the full text of the error or unexpected output you are encountering and the steps to reproduce the issue.
- Rich F.510 months agoExplorer | Level 4
Hi there.
Yes, the problem is using empty string as root for an app. I'll check it again, but I reviewed this intensively and couldn't find the files in that directory.
About Discuss Dropbox Developer & API
Make connections with 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!