in reply to Re^2: check if it is a file or directory
in thread check if it is a file or directory
now -f test in oldFolder.$oldFolder='C:\Documents and Settings\user\Desktop'; opendir OF, $oldFolder or die "\nCannot open dir $old1Folder: $!\n"; chdir $oldFolder; while ( my $name=readdir OF) { next if $name =~ /^\./ or -f $name; # not interesting . o .. (or hidden files) neither in plain files print $name; } closedir OF;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: check if it is a file or directory
by Khen1950fx (Canon) on Feb 27, 2010 at 11:16 UTC |