Implement createDirectoryEntry