in reply to Re^2: Need Net::FTP rmdir time out help
in thread Need Net::FTP rmdir time out help
You aren't checking if rmdir succeeded or failed.So, instead of
you should do something like$ftp->rmdir ( "${Ordered_List[$Index]}", 1 );
Aside from permission problems, a recursive rmdir could fail if e.g. deleting the contents takes too long.if ($ftp->rmdir ( "${Ordered_List[$Index]}", 1 )) { say "rmdir succeeded"; } else { say "rmdir failed"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Need Net::FTP rmdir time out help
by Anonymous Monk on Feb 02, 2017 at 18:38 UTC | |
|
Re^4: Need Net::FTP rmdir time out help
by Todd Chester (Scribe) on Feb 04, 2017 at 08:13 UTC |