http://perldoc.perl.org/Net/FTP.html
you have to use the ls ( [ DIR ] ) to know if the directory is empty and then loop for the files of your directory to delete ( FILENAME ) all the files before using rmdir ( DIR )or you can try to use the RECURSE option of rmdir : rmdir ( DIR , RECURSE ) Remove the directory with the name DIR . If RECURSE is true then rmdir will attempt to delete everything inside the directory.
In reply to Re: Recursive delete files using perl script
by x-lours
in thread Recursive delete files using perl script
by tipu123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |