public static void forEachFile(Path path, Consumer<Path> consumer) throws IOException {
		if (!Files.isDirectory(path)) {
			return;
		}

		try (Stream<Path> pathStream = Files.list(path)) {
			pathStream.forEach(consumer);
		}
	}
A convenience method to list the contents of the given directory path and pass each to the
given consumer.  If the given path does not represent a directory, nothing will happen.

<p>This method handles closing resources by using the try-with-resources construct on 
{@link Files#list(Path)}

@param path the directory
@param consumer the consumer of each child in the given directory
@throws IOException if there is any problem reading the directory contents
Ghidra/Framework/Utility/src/main/java/utilities/util/FileUtilities.java