I have src_list and dst_list, two lists of the same length.
src_list contains paths to existing files.
dst_list contains paths to maybe existing files to maybe overwrite (not folders!).
src_list[i] should correspond to dst_list[i].
I want to copy every src_list[i] to dst_list[i], in (multiprocessing, not threading) parallel.
I want the call to be blocking, meaning all processes should be joined before moving on.
Examples of lists:
src_list = [
r"/data/one/f1.txt",
r"/data/one/f2.txt",
r"/data/two/f3.txt",
r"/data/three/f4.txt",
r"/data/four/five/f5.txt",
]
dst_list = [
r"/out1/f1.txt",
r"/out2/two/three/pook.txt",
r"/data/foo/bar/baz/f333.txt",
r"/kiko/f4",
r"/data/four/five/f5.txt",
]
really, just just paths to files. Please assume the lists are ~1000-5000 elements long.
What I seem to lack is the correct API call to parallelize over two iterables.