public static boolean isReadOnlyPDBDirectory(ResourceFile directory) {
		File dir = directory.getFile(false);
		if (dir == null) {
			return true;
		}
		File readOnlyLockFile = new File(dir, READ_ONLY_DIRECTORY_LOCK_FILE);
		if (!readOnlyLockFile.isFile()) {
			try {
				ResourceFile parentFile = directory.getParentFile();
				if (parentFile == null) {
					return false;
				}
				return isReadOnlyPDBDirectory(parentFile);
			}
			catch (SecurityException e) {
				// return true
			}
		}
		return true;
	}
Check for the presence of directory read-only lock
@param directory directory to check for read-only lock
@return true if read-only lock exists
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/db/PackedDatabase.java