Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
deadpickle:
Another possibility: If another job has the file open, then the delete won't work. In my environment (running cygwin under Windows XP), I see this all the time. IIRC, cygwin has a background thread, so if you remove the file, it will actually be deleted after the other processes release the file. As an illustration, create a simple text file called zanzibar.txt, and run the following program in a window.
Then, in another window, delete the file. On my system, I see this:
If I wait five minutes and look again, it's gone: ...roboticus In reply to Re: Deleting a File in Windows
by roboticus
|
|