I made a script in Python that is able to move some files from one folder to another. This is on when the file's are static. My problem comes when the files are "incomplete" because a torrent program is still downloading them.
How can I check with python, before performing the "moving" operation, if the file is incomplete/still downloading, so I know I have to wait performing any operation on that file?
Because if I run my script and the file is still downloading, of couse, I would be moving a corrupted file, which isn't very nice.
So, how can one know if a file is being modified/incomplete in python?
As a torrent client, I am using Tixati.