Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Need Net::FTP rmdir time out helpby Todd Chester (Scribe) |
on Feb 01, 2017 at 08:00 UTC ( [id://1180737]=perlquestion: print w/replies, xml ) | Need Help?? |
Todd Chester has asked for the wisdom of the Perl Monks concerning the following question:
Dear Perl Monks, Strawberry Perl 5.24.0.1 for Windows. I am trying to recursively delete directories on an FTP server (vsftp) with Net::FTP with Windows with Perl 5 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. How do I wait for rmdir to finish and not guess at it? The directory size could be a big as 30 GB in the future. Many thanks, -T
Back to
Seekers of Perl Wisdom
|
|