Yes, in Mint as well.
Program A opens a text file for writing, slowly, for 30 secs, writing 100 bytes every sec.
I can see the file created.
Program B then runs and delete the text file and exits.
Program A continues to write as if nothing had happens. On desktop window, I can see that the file turned into a folder
Program A finally exits, and luckily the folder (which was a text file) is gone.
In program B, I test for opened file the brute force way:
1. open it for writing.... can be opened.
2. rename the file.... can be renamed.
So are there any system functions to do this properly?