implemented removeDirectory()