in reply to Re: Net::FTP - Check if file already exists locally before download
in thread Net::FTP - Check if file already exists locally before download
Hi Monks,
I got a follow up question. Is it possible to use the same command to check if file exists in two or more different directorites?
for my $file (@set_of_files) { $ftp->get ($file) unless -e /dir1/$file; }
so basically to check:
unless -e /dir1/$file unless -e /dir2/$file
something like that?
Thanks again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::FTP - Check if file already exists locally before download
by Paladin (Vicar) on Mar 11, 2019 at 21:44 UTC | |
by mitabrev (Novice) on Mar 12, 2019 at 08:24 UTC |