Hi,
I've written a python script which handles merging updates from a patch directory into the main data directory.
Simply it takes a list of files from the patch directory, copies them into the build dir and tags the patch directory as closed.
If I do this manually and let the Dropbox client handle it, it takes about 5-10 seconds regardless of how many files are involved. However using the API, each file takes approximately 5 seconds. This is confounding, is there any reason? If the Dropbox client (on Windows) uses a different API for the same purpose, what is it?
#adding to batch:
batch.append(dropbox.files.RelocationPath(from_path=remote_patch_dir + k + kj,
to_path=remote_build_dir + kj))
#issuing copy call:
res = dbx.files_copy_batch_v2(batch)
jobid = res.get_async_job_id()
while True:
if dbx.files_copy_batch_check_v2(jobid).is_complete():
break
sleep(10)