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
YanivB
11 months agoHelpful | Level 6
SwiftyDropbox - retrieve the paths of all files and folders in the root directory
Hi all, I need help, I have set the SwiftyDropbox SDK in my IOS project, and I am able to do the OAuth process successfully :
and i get my dropbox account info when i ask the API:
...
YanivB
Helpful | Level 6
I dont see any mistake .....
1. The dropboxOAuth() func, returned me the Token i need for later use.
That is working and I can re-Auth with that Token later.
2. The getCurrentAccountDropboxInfo()func, also working as i am getting all my account info when I run it.
3. What i have problems is the listFilesInRootDropbox()func....as its working but I got this response (which doest make sense to me as I expected to get the list of all my folders and files in the the Root of my Dropbox folder.....:
Здравко
11 months agoLegendary | Level 20
Hm... 🤔 Ok, but the result gets printed out from "line 3177" on one side and code you show appears on "line 322"on other side. Isn't a bit strange? 🧐
- YanivB11 months agoHelpful | Level 6
no no , the name/num of the "line 3177" is random text not the real code line number.
I get why confused , but that is irrelevant for the response i get from API.
Can anyone clarify it for me ?- Greg-DB11 months agoDropbox Staff
YanivB I see you're getting an empty list back from listFolder, so it looks like you may be using an app with the "app folder" access type. Apps with the app folder access type can only access the app folder automatically created for it. App folders are empty by default, so you would initially get an empty listing like this.
If you want to access the rest of your account, not an app folder, you'd need to switch to using an app with the "full Dropbox" access type instead. If you do so, be sure to reauthorize with the full Dropbox app to get an access/refresh token for that app instead.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 2 days agoIf 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!