List all files in folders and subfolders using Dropbox API and python

Viewed 1038

I have the task of reorganizing our company's Dropbox. I am using Python and the Dropbox API and my goal is to pull a list of all the files in the folders and subfolders of our Team Dropbox.

So far, my code looks is from their basic code and I would like just a little help in understanding how to list the files in each of the subfolders as well.

import dropbox

dbx = dropbox.Dropbox('API')
dbx.users_get_current_account()

for entry in dbx.files_list_folder('/Company Team Folder').entries:
    print(entry.name)

Thank you for any guidance on this.

0 Answers
Related