Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: unlink fails to delete files with perculiar names

by DaveARoberts (Acolyte)
on Nov 22, 2011 at 16:40 UTC ( #939494=note: print w/replies, xml ) Need Help??


in reply to Re: unlink fails to delete files with perculiar names
in thread unlink fails to delete files with perculiar names

I think you are right in that the file is an auto backup from word, and probably one that was orphaned some months back. Unfourtunatly the file cannot be seen in an explorer window, or from the dir command in a command window.

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

Replies are listed 'Best First'.
Re^3: unlink fails to delete files with perculiar names
by Anonymous Monk on Nov 23, 2011 at 13:47 UTC

    Unfourtunatly the file cannot be seen in an explorer window, or from the dir command in a command window.

    hidden files require doing more than the default to see them

Re^3: unlink fails to delete files with perculiar names
by DaveARoberts (Acolyte) on Nov 23, 2011 at 13:43 UTC

    Thinking more on this I think that you have touched on the source of the file (a temporary backup from an MS Office program - I have excel, word and powerpoint examples). If I try to delete a file using unlink with the application still open it complains (Permission denied).

    The code snippet is from a file replication utility. I think what has happened is that an oen file has been replicated, the original destroyed by the creating application, and then replaced by a subsequent replication event.

    The preventative cure is to prohibit the copy of a file with the pattern "/~$" in its path/name. The curative solution may be to delete any directory containing files with this pattern - and recreate what I want from a backup

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939494]
help
Chatterbox?
[stevieb]: shmem It's something I desired to have years ago, which is why I took over berrybrew. Cross-platform build/test automation locally, or over the network Test::BrewBuild
[shmem]: sounds good.
[shmem]: but I'm crumbling smaller stones. remember...
[stevieb]: I'm working on it to fatten it up and make it more reliant so I can finalize my Raspberry Pi automated build system for that software :) It's all well and fun, until I try to make it work with Windows lol
[shmem]: "debugging a program is more difficult than to write it in the first place. If you code your program as smart as you are, you are, by definition, too dumb to debug it."
[stevieb]: I literally laughed. That's good :) Perhaps I just need to go climb another mountain and forget about it

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2017-03-28 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (342 votes). Check out past polls.