relative_path = os.path.relpath(local_path, local_directory)
dropbox_path = os.path.join(dropbox_destination, relative_path)
with open(local_path, 'rb') as f:
    client.put_file(dropbox_path, f)
Как загрузить полную папку в Dropbox с помощью python