public static boolean isLink(File f) throws IOException {
    	return Files.isSymbolicLink(Paths.get(f.getPath()));
    	
/*        if (f.getName().toUpperCase().endsWith(".LNK"))
            return true;
        return ! (f.getAbsolutePath().equals(f.getCanonicalPath()));*/
        // this doesn't seem to work on relative paths
    }