public GFile lookup(GFile baseDir, String path, Comparator<String> nameComp) {
		if (baseDir != null && !baseDir.equals(rootDir)) {
			return null;
		}
		if (path == null || path.equals("/")) {
			return rootDir;
		}
		nameComp = Objects.requireNonNullElse(nameComp, String::compareTo);
		// compare the FSRL path ("/payloadname") as well just the payloadname (to be compatible
		// with existing data that have malformed fsrls without a leading slash in the path) 
		return nameComp.compare(path, payloadFile.getFSRL().getPath()) == 0 ||
			nameComp.compare(path, payloadFile.getFSRL().getName()) == 0 ? payloadFile : null;
	}
Mirrors {@link GFileSystem#lookup(String)} interface.

@param baseDir starting directory 
@param path path and filename of a file to find (either "/" for root or the payload file's
path).
@param nameComp optional {@link Comparator} that compares file names.  Suggested values are 
{@code String::compareTo} or {@code String::compareToIgnoreCase} or {@code null}.
@return {@link GFile} instance or null if requested path is not the same as
the payload file.
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/SingleFileSystemIndexHelper.java