in reply to Recursive delete files using perl script
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recursive delete files using perl script
by kennethk (Abbot) on Jun 30, 2014 at 15:17 UTC |