in reply to Re^4: ftp rmdir with all files
in thread ftp rmdir with all files

It seems your code is correct, except that there's no isdir method in Net::FTP. There did you get it from?

Replies are listed 'Best First'.
Re^6: ftp rmdir with all files
by Selvakumar (Scribe) on Jul 07, 2009 at 04:14 UTC
    i used "isdir" conditon from use Net::FTP::File module.
Re^6: ftp rmdir with all files
by Selvakumar (Scribe) on Jul 07, 2009 at 05:38 UTC
    i did some trail and error method and i found that if the dir has no sub directories and it has only files then it removes the folder otherwise it's not removing the folder. Any chance to remove the folder and it's sub folder etc., in FTP.

      It works for me, it deletes directory with all its subdirectories without any problems. So now question is what ftp server you're using and what version of Net::FTP? Try to update Net::FTP.