draconis has asked for the wisdom of the Perl Monks concerning the following question:
I want to determine a file's type - not in the sense if it is a .pdf, perl file, etc - rather if it is a directory, symlink, etc. I know this is contained in the first bit of the mode returned by stat(). I do not know how to "unpack" that bit and determine what it means.
Could someone kindly shed some light on this for me?
Much thanks
--draconis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to determine a file's type via stat()
by robartes (Priest) on May 09, 2003 at 17:20 UTC | |
by draconis (Scribe) on May 09, 2003 at 17:24 UTC | |
by robartes (Priest) on May 09, 2003 at 17:29 UTC | |
by Limbic~Region (Chancellor) on May 09, 2003 at 17:30 UTC | |
|
Re: How to determine a file's type via stat()
by TVSET (Chaplain) on May 09, 2003 at 17:22 UTC | |
|
Re: How to determine a file's type via stat()
by shemp (Deacon) on May 09, 2003 at 17:25 UTC | |
|
Re: How to determine a file's type via stat()
by cbro (Pilgrim) on May 09, 2003 at 17:33 UTC | |
|
Re: How to determine a file's type via stat()
by draconis (Scribe) on May 09, 2003 at 17:34 UTC |