Todd Chester has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to recursively delete directories on an FTP server (vsftp) with Net::FTP with Windows with Perl 5$ rpm -qa \*vsftp\* vsftpd-3.0.3-3.fc25.x86_64
Problem: $ftp->rmdir doesn't wait for the operation to finish. And if I go on to another FTP command of any type before rmdir finishes, the rmdir command will terminate, leaving the directory, or what is left of it, in place. I am having to guess at how long to wait with the "sleep" command.$ftp->rmdir ( "${Ordered_List[$Index]}", 1 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need Net::FTP rmdir time out help
by salva (Canon) on Feb 01, 2017 at 08:37 UTC | |
by Todd Chester (Scribe) on Feb 01, 2017 at 08:41 UTC | |
by GotToBTru (Prior) on Feb 01, 2017 at 12:54 UTC | |
|
Re: Need Net::FTP rmdir time out help
by Mr. Muskrat (Canon) on Feb 01, 2017 at 17:53 UTC | |
by Todd Chester (Scribe) on Feb 02, 2017 at 06:05 UTC | |
by soonix (Chancellor) on Feb 02, 2017 at 11:44 UTC | |
by Anonymous Monk on Feb 02, 2017 at 18:38 UTC | |
by Todd Chester (Scribe) on Feb 04, 2017 at 08:13 UTC | |
by salva (Canon) on Feb 02, 2017 at 07:40 UTC |