public static FileType getFileType(File f) {
		try {
			Path p = f.toPath();
			if (Files.isSymbolicLink(p)) {
				return FileType.SYMBOLIC_LINK;
			}
			if (Files.isDirectory(p)) {
				return FileType.DIRECTORY;
			}
			if (Files.isRegularFile(p)) {
				return FileType.FILE;
			}
		}
		catch (IllegalArgumentException e) {
			// fall thru
		}
		return FileType.UNKNOWN;
	}
Returns the destination of a symlink, or null if not a symlink or other error

@param f {@link File} that is a symlink
@return destination path string of the symlink, or null if not symlink
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/FSUtilities.java