Hi
I'm trying to download a dropbox link to a .xlsx file using the following script but am getting the error "FileNotFoundError: [Errno 2] No such file or directory: '/downloadfolder/subfolder' ", that directory does exist i can see it and have also listed files in that directory using files_list_folder. I've searched similar errors on here but can't get it to work, any ideas what I'm doing wrong?
import dropbox
dbx = dropbox.Dropbox('TOKEN')
download_path = '/downloadfolder/subfolder'
path = '/folder/file.xlsx
dbx.files_download_to_file(download_path,path)
I've also tried downloading the link via sharing_get_shared_link_file_to_file aswell but get the same error:
download_path = '/downloadfolder/subfolder'
url_file = ('https://www.dropbox.com/scl/fi/sometext/file.xlsx?dl=0&rlkey=sometext')
dbx.sharing_get_shared_link_file_to_file(download_path, url_file)
Thanks in advance