I have used dropbox file chooser to download files and filelinks. After I extract the filenames using the file chooser, I want to get more extended metadta.
To do that I first went through Oauth2, then I used the following python codes:
fileid=dbx.files_get_metadata('/'+filename).id
but got the following error message:
File "/home/serve624/lib/python2.7/site-packages/dropbox/base.py", line 449, in files_get_metadata
None,
File "/home/serve624/lib/python2.7/site-packages/dropbox/dropbox.py", line 272, in request
user_message_locale)
ApiError: ApiError('f865f89a9c9f0c3e53e7319f8d99e3cf', GetMetadataError(u'path', LookupError(u'not_found', None)))
Here is another line of python codes:
filesize=dbx.files_get_metadata('/'+filename).size
File "/home/serve624/lib/python2.7/site-packages/dropbox/base.py", line 449, in files_get_metadata
None,
File "/home/serve624/lib/python2.7/site-packages/dropbox/dropbox.py", line 272, in request
user_message_locale)
ApiError: ApiError('25dcb0204364f0edcc35c33231877b85', GetMetadataError(u'path', LookupError(u'not_found', None)))
These two lines of python codes worked for some files from one account but not for files in another account. I don't know what the error message means. Could it be that the file path in the () is not correct? If so how should I compose the file path? How do I get the correct file path from the file chooser?
Thank you for your help.