i use a script to copy files to a sharedrive. One of the files is usually around 3GB. The copy is quite slow, compare to manual copy. (all on Windows)
How can change the buffer size in my code ? Something similar like the answer in that question: Python copy larger file too slow
def copyAllFiles():
src_files = os.listdir(src)
for file_name in src_files:
full_file_name = os.path.join(src, file_name)
if (os.path.isfile(full_file_name)):
shutil.copy(full_file_name, newPath)
print("copy done")
or is there recommendation to use other copy method?