in reply to Re: Testing for existance of subdirectories
in thread Testing for existance of subdirectories
Not quite sure what I'm doing with that $attrib, but hey it works!! Thanks for your help guys (Needed to think in a diferent direction :)foreach my $file (readdir(CURRENT)) { next if (($file eq ".") || ($file eq "..")); my $checkDir="$dir\\$file"; Win32::File::GetAttributes($checkDir, my $attrib); if ($attrib == 16) { return 1; } }
("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_..' ,'
(il),-'' (li),' ((!.-'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Testing for existance of subdirectories
by mugwumpjism (Hermit) on Aug 19, 2001 at 14:56 UTC | |
by ChrisNutting (Initiate) on Aug 19, 2001 at 15:06 UTC |