Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ctubbs
Dropbox Staff
6 years agoPython TypeError using Dropbox API move_v2function
Hi, I am trying to use the API to batch rename file. I had specific questions are around the move_v2 function:
I’m running dropbox.files.move_v2(params), where the args are from_path and to_path – As I understand it, we can’t rename files specifically, rather we just use move/move_v2.
However, I keep getting the below error:
I know the function exists as a result, but clearly I’m not using it correctly.
11 Replies
- LRomano6 years agoExplorer | Level 3
Hmmmmm, yes that makes sense actually, that the move operation would in a sense 'reset' the file in terms of where the cursor is, and thus might get included in a future operation.
Problem is the full file list is 160k total files across a number of directories, and even counting them all takes ~8 mins.
I think a workaround is to include an if statement to exclue any file that beginswith('str'), as all the strings that I'm appending to files begin with 'zas', but it's not exactly elegant. :)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!