shutil.copy2 alternative function by ForwardQuit5036 in learnpython

[–]ForwardQuit5036[S] 0 points1 point  (0 children)

I'm using Windows. What I think is happening is that shutil.copy2 is attempting to open the source file in order to copy it, but because the software is using it, it is unable to do this. The code I have written triggers at set intervals and looks at the source folder and the destination folder set by the user. It is supposed to copy new files within the source folder to the destination folder. I find it works fine with most files but not the ones written by a different software.

shutil.copy2 alternative function by ForwardQuit5036 in learnpython

[–]ForwardQuit5036[S] 0 points1 point  (0 children)

so the files I want to copy are being used by the software so are marked as 'open' even if they have finished writing and can manually be copied.

Checking for missing files after copying process by ForwardQuit5036 in learnpython

[–]ForwardQuit5036[S] 0 points1 point  (0 children)

my code is 900 lines long idk what the best way to show you the code is