You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: