You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

skaros's avatar
skaros
Helpful | Level 6
8 years ago

dropbox programmatically get "app folder" path

Hi,

Is it possible to get the current path to the application folder I am using for my "App Folder" application?

 

I know i could insert "/Apps/MyAppFolderName/" but this might change in the future, if I manually change my apps settings.

 

Thanks

  • No, the Dropbox API doesn't expose a way for apps with the app folder app to query their full app folder path.

    The API is designed such that apps shouldn't need to know their own app folder path though. I.e., when such an app references a path using the API, the API automatically translates the root to be the app folder root on the backend.

    That being the case, can you elaborate on what your use case for this is?
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    No, the Dropbox API doesn't expose a way for apps with the app folder app to query their full app folder path.

    The API is designed such that apps shouldn't need to know their own app folder path though. I.e., when such an app references a path using the API, the API automatically translates the root to be the app folder root on the backend.

    That being the case, can you elaborate on what your use case for this is?
    • skaros's avatar
      skaros
      Helpful | Level 6

      Well, it is not really a major issue for me, I just thought it would be usefull.

      The reason I would use it, is to inform the user for the complete path to a file that was just uploaded using my app.

       

      The thing is that I am still on development, so i am not sure if the path name will change according to any customer feedback. In that case I would have to change the App folder path within my code. Small price to pay though.

       

      Thanks

       

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        Thanks!

        By the way, for reference, the path is also localized for accounts in other languages, and users can move and rename app folders whenever they want.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,888 PostsLatest Activity: 24 hours ago
326 Following

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 or Facebook.

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!