Implemented getDirEntry() helper