protected void resolveItemPath() throws IOException {

		// NOTE: Assume path may correspond to non-existent folder if not found
		// - this is why NOT_FOUND status code setting has been disabled

		if (folderItemName != null) {
			if (itemPath.endsWith("/")) {
				// explicit folder path - force folder URL
				folderPath = appendSubfolderName(folderPath, folderItemName);
				folderItemName = null;

//				if (readOnly && !repository.folderExists(itemPath)) {
//					// TODO: URL location not found
//					statusCode = NOT_FOUND;
//					return;
//				}
			}
			else if (!repositoryAdapter.fileExists(folderPath, folderItemName)) {

				// file item not found - check for existing sub-folder instead
				String path = appendSubfolderName(folderPath, folderItemName);
				if (repositoryAdapter.folderExists(path)) {
					// item name found as folder - force folder URL
					folderPath = path;
					folderItemName = null;
				}

//				if (folderItemName != null) {
//					// TODO: URL location not found
//					statusCode = NOT_FOUND;
//					return;
//				}
			}
		}
	}
Fully resolve folder/item reference once connected to the associated
repository due to possible ambiguity  
@throws IOException if an IO error occurs
Ghidra/Framework/Project/src/main/java/ghidra/framework/protocol/ghidra/GhidraProtocolConnector.java