I'm looking for some code to check if a file in the file system is available (not used by another process). How could I do it in Python? Thanks!
How I'll use it: cylically check if file is available and when it is (processes don't need it anymore) delete it.