Recursive file Copy - Python Box SDK?
Hello, I am new to box SDK. I need to copy millions of user files (using as_user). Here is how I understand it works with python SDK
- Check if a folder or sub-folder exists, if not create it. Return the folder_id for the next step
- Check if the file exists. If not copy files to the folder
- Apply retention policies (did not test this yet)
I did test and I can copy test files fine. But I have to copy large number of files. The process will be slow. It will take a long time to copy. Wondering if there is a better way to do this.
I need to repeat the copy process to move any changed files during cut-over.
-
hey
You could thread your requests (some examples in the python SDK can be found in the tests). For more generic documentation of using threads in Python, I'd take a look at this resource.
Please sign in to leave a comment.
Comments
1 comment