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

Re: stat to identify files?

by tachyon-II (Chaplain)
on Jun 11, 2008 at 13:02 UTC ( [id://691457]=note: print w/replies, xml ) Need Help??


in reply to stat to identify files?

Why not just check if the link exists and create it if it does not?

Replies are listed 'Best First'.
Re^2: stat to identify files?
by Skeeve (Parson) on Jun 11, 2008 at 17:12 UTC

    That's what I'm trying to do, checking whether or not the link exists. Can you please elaborate? I don't understand what you want to say.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
      See -f under -X to check whether a filename is a symlink and use readlink to get the symlink value.

        ++! The best solution at all! Thanks a lot!


        s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
        +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://691457]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 15:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found