@Override
	public List<GFile> getListing(GFile directory) throws IOException {

		//Return listing for root directory, should be first listing returned anyway. 
		//Checking for null fixed some issues as well.
		if (directory == root || directory == null) {
			return rootListing;
		}

		if (directoryToChildMap.containsKey(directory)) {
			return directoryToChildMap.get(directory);
		}

		CramFsInode parentInode = getChildInodeByName(directory.getName());
		//Store current inode and size info in a counter.
		int directoryLength = parentInode.getSize();

		List<GFile> directoryListing = populateChildList(directory, parentInode, directoryLength);

		directoryToChildMap.put(directory, directoryListing);
		return directoryListing;
	}
Small utility to search childList for specific cramFsInode by name.
@param targetName the name of the cramFsInode we are searching for.
@return the target cramFs Inode.
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/cramfs/CramFsFileSystem.java