Update the code (and the tests) for creating/deleting directories. 

You're right. That's how it worked at some point, but I changed it having in mind the new structure of the commit message. But I`ll revert it to the old version, since for now we are sticking to the current version of the commit message.

Good one!