foreach my $entry (File::Listing::parse_dir($ftp->dir())) { my($name, $type, $size, $mtime, $mode) = @$entry; next if $type eq 'f'; # plain file # ... do something with directories ... }
In reply to Re: Testing Files and Directories
by saintmike
in thread Testing Files and Directories
by new_monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |