Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Well, yes, that's what line 22 does. So apparently you want the starting directory (your "specified" directory) to be treated differently than the directories under it. The starting directory should be left alone but the directories under it should be deleted.
Everything else in your code looks just fine: recursive method (good), don't delete directory until everything in it has been deleted (good), but unfortunately you treat the starting directory the same as the others (not good). So you're going to need additional code which takes care of that particular situation.
We can walk to school together. And we can both read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss