regex - How to turn off Interactive mode in FTP (perl) -


i trying delete non-empty directory via ftp using perl script. in order first need remove contents inside directory , delete directory.

in ftp need disable prompt this. otherwise keep asking confirmation on deleting every file.

ftp> prompt interactive mode off. ftp> mdelete 2013-10-01-full/* ftp> rmdir 2013-10-01-full 

how can turn prompt off in perl. there no such feature listed in net::ftp. tried $ftp->prompt;

from net::ftp documentation:

rmdir ( dir [, recurse ]) remove directory name dir . if recurse true rmdir attempt delete inside directory.

you don't need worry prompt thing. use $ftp->rmdir($dir, 1) , delete dir including in it.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -