in reply to convert whitespaces to underscores

Just a thought, but if you are changing all filename whitespaces to underscores, shouldn't you be doing the same for the directories?