http://qs1969.pair.com?node_id=327532


in reply to Re: Re: Delete folders via FTP
in thread Delete folders via FTP

Reverse - you can't delete a dir if it still has content. I don't see where you validate in your code that the directory is empty - do you know it is empty already?



"I have never written bad code. There are merely unanticipated features."

Replies are listed 'Best First'.
Re: Re: Re: Re: Delete folders via FTP
by new_monk (Sexton) on Feb 09, 2004 at 15:22 UTC
    I did not know it was supposed to be empty in order for the delete to work. We delete these directories at the end of the day regardless of content. They do have some subdirectories and *.rdb files that are discarded daily. How would I delete everything under iq whether its empty or contains data? We usually telnet into the server and do a rm -r * to remove the folders.