new_monk has asked for the wisdom of the Perl Monks concerning the following question:
@files = $ftp->ls; foreach $file1 (@files) { if($file1 !~ a directory){skip it}; if($file1 !~ a file) { $ftp->get($file1) || die "Can't get files from $dir :@{[ $ftp->m +essage ]}\n"; } } $ftp->close(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing Files and Directories
by saintmike (Vicar) on Apr 26, 2004 at 17:18 UTC | |
|
Re: Testing Files and Directories
by CountZero (Bishop) on Apr 26, 2004 at 21:47 UTC | |
|
Re: Testing Files and Directories
by fluxion (Monk) on Apr 26, 2004 at 19:06 UTC | |
by Joost (Canon) on Apr 26, 2004 at 19:25 UTC | |
by fluxion (Monk) on Apr 26, 2004 at 19:44 UTC | |
by flyingmoose (Priest) on Apr 26, 2004 at 21:32 UTC | |
|
Re: Testing Files and Directories
by wolfi (Scribe) on Apr 27, 2004 at 06:36 UTC |