private void writeIndexFolder(PrintWriter indexWriter, Folder folder,
			MessageDigest messageDigest) {

		// all folder paths will start with FileSystem.SEPARATOR_CHAR '/'
		String folderPath = folder.getPathname();
		indexWriter.println(folderPath);
		digest(folderPath, messageDigest);

		for (Item item : folder.items.values()) {
			String entry = formatIndexItem(item);
			indexWriter.println(INDEX_ITEM_INDENT + entry);
			digest(entry, messageDigest);
		}

		for (Folder subfolder : folder.folders.values()) {
			writeIndexFolder(indexWriter, subfolder, messageDigest);
		}
	}
Writes current folder index.
@throws IOException
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/IndexedLocalFileSystem.java