Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: parsing the Windows directories

by frozenwithjoy (Priest)
on Aug 19, 2014 at 20:28 UTC ( [id://1098041]=note: print w/replies, xml ) Need Help??


in reply to parsing the Windows directories

I think you might need to use lstat instead of stat.

At the bottom of the stat docs, it says:

To get status info for a symbolic link instead of the target file behind the link, use the lstat function.

And in lstat:

Does the same thing as the stat function (including setting the special _ filehandle) but stats a symbolic link instead of the file the symbolic link points to. If symbolic links are unimplemented on your system, a normal stat is done.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098041]
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-18 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found