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

is better to delete the file using `os.unlink` instead of `self.unlink`, because `self.unlink` is going to create a new commit message