Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux

by isync (Hermit)
on Oct 05, 2009 at 18:12 UTC ( [id://799311]=note: print w/replies, xml ) Need Help??


in reply to Re: POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux
in thread POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux

I am kind of wrapping stat() for a filesystem overlay, FUSE, Filesys::Virtual, client and server script stuff.

You are right: The easy way would be to just use -d and -f, as you pointed out, and equal them to my own breed of flags - right. (already tried that and it worked)

But I would like to stay away from introducing my own lingo and instead stick to standards. As of now, I only need the differentiation between file/dir, but in the future I might needed to have more resolution in that field. And starting my own flags now would lead to reinventing the whole "mode" thing in the future...
  • Comment on Re^2: POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found