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's avatar
Rich F.5
Explorer | Level 4
10 months ago
Solved

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.  

  • Full permissions set
  • auth token is working fine
    • I can get my account using this token
  • There are two files in this project root folder, but it's reporting no files in there at all

I simply cannot find any files nor folders at all, and I don't know why.  The gem's Issues on github don't show any issues that are related.  So I'm assuming the gem is working properly, with nearly 4 million downloads.  I'm assuming I'm doing something wrong.

I've triple checked all this and even Gemini 2.0 has said it has nothing more to suggest other than post in here.  That's pretty solid.

So anybody with any insight, please tell me what you want to see as I can't get past any of this.  

Cheers

  • iNeil's avatar
    iNeil
    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. 

11 Replies

Replies have been turned off for this discussion
  • Rich F.5's avatar
    Rich F.5
    Explorer | Level 4
    10 months ago

    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

Node avatar for 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!