createEntry method was split into createDirectory and createFile