/** * Gets the relative representations of a file compared to another. * * @param subj * The File to find the relative form for. * @param relativeTo * The File 'subj' should be made relative to. * @return The relative representation of subj. */ public static File getRelativeFile(File subj, File relativeTo) { return new File(getRelativePath(subj, relativeTo)); }