Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Diff between file and directory

by bear0053 (Hermit)
on Aug 25, 2003 at 17:34 UTC ( [id://286430]=note: print w/replies, xml ) Need Help??


in reply to Diff between file and directory

the following test will determine if the array element is a a directory in windows
if (-d $file)
make sure $file contains path as well as file/directory name. this will check if it is a readable file
if (-e $file)

Replies are listed 'Best First'.
Re: Re: Diff between file and directory
by allolex (Curate) on Aug 25, 2003 at 17:42 UTC

    the following test will determine if the array element is a a directory in windows

    I heard this works on all other platforms as well. ;)

    --
    Allolex

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found