in reply to Recursive delete files using perl script

stat does not work over FTP. I don't know how to learn about the status of a remote file/directory using ftp.