I want to use the Dropbox API to access the Dropbox for managing my data storage. I am successfully able to connect to dropbox by adding an app by setting appropiate permissions to the app and by generating access token. However, I would like to Access the folders that are outside my personal folder.
Team DigitalAqua
|-Santhosh Kumaran
| -test
| -text1.txt
| -Santhosh Kumaran - Shortcut.lnk
| -santhosh.kumaran@xxxx.xx’s files
|-Videos
| - A
| - B
| - B
My intented work:
Step 1: Connect to the Dropbox: ->Success
import dropbox
# Token Generated from dropbox
TOKEN = "<Generated_TOKEN>"
dbx = dropbox.Dropbox(TOKEN)
print('Connected to Dropbox successfully')
Step 2: Specify the folder: Works for my folder Santhosh Kumaran
folder_path = "/test" ## Works
folder_path = "../Videos" Does not work
Step 3: List the files in the folder
files = dbx.files_list_folder(folder_path).entries
print("------------Listing Files in Folder------------ ")
for file in files:
# listing
print(file.name)
Step 4: Make all the files and folders at the folder path to online-only to avoid the local storage to be overused. I would like less storage on local disk.
I do not know how to do it