private boolean containsCheckout() throws IOException {

		// Check files
		for (RepositoryFile rf : fileMap.values()) {
			if (rf.hasCheckouts()) {
				return true;
			}
		}

		// Check sub-folders
		for (RepositoryFolder subfolder : folderMap.values()) {
			if (subfolder.containsCheckout()) {
				return true;
			}
		}

		return false;
	}
Returns true if any file/item contained within this folder
or its descendants is checked-out.
Ghidra/Features/GhidraServer/src/main/java/ghidra/server/store/RepositoryFolder.java