I have downloaded the filelock module in order to lock files using my python program. this is my code:
import filelock
lock = filelock.FileLock(path)
lock.acquire()
#do something...
lock.release()
for some reason I don't understand when I release the lock the file is deleted. Does anyone know how to deal with this? How can I keep the file available also after the lock is released? if it is relevant, my file is kept on a separate hard drive. thank you.
I am using windows 10 pro