CB-5774: create DirectoryEntry instead of FileEntry