Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Why does FileZilla itterrate through each file in a folder and delete each one instead of just deleting the folder? I know this sounds like a simple question, and it probably has the simple answer that FTP doesn't delete folders, but I was just wondering if anyone could shed some light on this issue.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You've answered your own question - there's no concept in ftp of 'removing a directory and everything below it' with one command. Most FTP clients therefore iterate through every file one at a time, and then remove the parent directory.

share|improve this answer
    
So what happens if you try to remove a directory with stuff in it? An error? –  Arlen Beiler Jun 23 '11 at 12:56
    
Yes, depending on the FTP client you use, you'll get an error, or it'll iterate through everything and remove the files. Command line client error example -> ftp> rmdir todo / 550 todo: Do not specify an existing file. –  EightBitTony Jun 23 '11 at 12:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.