Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: unlink fails to delete files with perculiar names

by ikegami (Pope)
on Nov 22, 2011 at 18:06 UTC ( #939509=note: print w/replies, xml ) Need Help??

in reply to unlink fails to delete files with perculiar names

unlink reports the file deleted (and $no is set to 1 indicating one file deleted) - but in reality the file still exists.

That means a program still has the file open. The file is marked to be deleted and will be deleted as soon no program has the file open anymore. Windows doesn't have anonymous files like unix does.

  • Comment on Re: unlink fails to delete files with perculiar names

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939509]
[choroba]: I don't even remember the beginning
[choroba]: someone told me to use perl instead of sed for something, and several years later, I'm developing a huge Tk application
[Discipulus]: choroba started in primary school to get some advantage in the future..
[choroba]: nono, I programmed in Basic at the primary school, on my Commodore 116/16
[Discipulus]: ;=)
[choroba]: then learned some assebly on the same machine, then moved to my father's PC (XT with a Hercules card), used Turbo Pascal a lot
[choroba]: I started with *nix at the University, we had some Sparcs and Linux machines

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2018-06-22 09:33 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (123 votes). Check out past polls.