protected GFile lookupParent(String[] nameparts, Comparator<String> nameComp) {

		try {
			FileData<METADATATYPE> parent =
				lookup(rootDir, nameparts, nameparts.length - 1, true, false, 0, null, nameComp);
			return parent.file;
		}
		catch (IOException e) {
			// fall thru, return rootdir
		}

		return rootDir.file;
	}
Walks a list of names of directories in nameparts (stopping prior to the last element)
starting at the root of the filesystem and returns the final directory.
<p>
Directories in a path that have not been encountered before (ie. a file's path references 
a directory that hasn't been mentioned yet as its own file entry) will have a stub entry 
GFile created for them if createIfMissing is true.
<p>
Superfluous slashes in the original filename (ie. name/sub//subafter_extra_slash) will
be represented as empty string elements in the nameparts array and will be skipped
as if they were not there.

@param nameparts String[] containing the elements of a path
for them
@param nameComp optional comparator that will compare names, usually case-sensitive vs case
insensitive
@return GFile that represents the parent directory
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FileSystemIndexHelper.java