Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay in bulk file transfer from one USB drive to another USB drive #84

Open
guuptasengupta opened this issue Oct 19, 2020 · 0 comments

Comments

@guuptasengupta
Copy link

guuptasengupta commented Oct 19, 2020

Hi,

I am experiencing delay in transferring files from one USB drive to another USB drive using python code.
Initially transferring of files from the USB drive takes place very fast and gradually slow down to 10 kbps.

Is there any way to slowing down the file transfer process.

My python code is given below

import os
import shutil
directory = "name of the new directory"
dir_create = "Path of the destination directory" #destination directory
path = os.path.join(dir_create, directory)
os.mkdir(path) # create a new directory
dir_dst = "Path of the new destination directory"
dir_src = "Path of the Source directory" # .csv data file source directory
for filename in os.listdir(dir_src):
if filename.endswith('.csv'):
shutil.copy(dir_src + filename, dir_dst)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant