My Python script uses: os.system("cp -r /media/A/DATA /media/B")
I am copying the folder "DATA" located on the "A" USB flash drive to the "B" USB flash drive. The "DATA" folder contains .csv files. This seems to work as expected as the folder and all of its contents are copied to the "B" flash drive. The problem comes in whenever my script tries to access and edit one of the .csv file on "A" drive AFTER I have copied the data to "B" drive. The program hangs and runs VERY slow and sometimes locks up all together. Is there something more to "cp -r" that I should be doing after the copy is finished to close the drive or free resources?
default clock speed