public static boolean isModuleDirectory(Path path) {
		File file = path.toFile();
		if ("bin".equals(file.getName())) {
			// Prevent eclipse project bin directory from being treated as module root
			// since files frequently get copied from root into bin
			return false;
		}
		return new File(file, MANIFEST_FILE_NAME).exists();
	}
Returns true if the given path is a module root directory.

@param path the path to check
@return true if the given path is a module root directory.
Ghidra/Framework/Utility/src/main/java/utility/module/ModuleUtilities.java