public static boolean directoryExistsAndIsNotEmpty(File directory) {
		if (directory == null) {
			return false;
		}

		if (!directory.exists()) {
			return false;
		}

		if (!directory.isDirectory()) {
			return false;
		}

		return !directoryIsEmpty(directory);
	}
Returns true if the give file is not null, exists, is a directory and contains files.

@param directory the directory to test
@return true if the give file is not null, exists, is a directory and contains files.
@see #directoryIsEmpty(File)
Ghidra/Framework/Utility/src/main/java/utilities/util/FileUtilities.java