public static boolean safeIsSameFile()

in taverna-commandline-common/src/main/java/org/apache/taverna/commandline/CommandLineUtils.java [27:34]


	public static boolean safeIsSameFile(Path path1, Path path2) throws IOException {
		if (Files.exists(path1) != Files.exists(path2)) {
			// Either both must exist, or both must not exist
			return false;
		}
		// Now somewhat safe to call Files.isSameFile
		return Files.isSameFile(path1, path2);
	}