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

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.

Replies are listed 'Best First'.
Re^7: ftp rmdir with all files
by zwon (Abbot) on Jul 07, 2009 at 17:37 UTC

    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.