sS disk_findMountPoint(File f, LS mountPoints) { if (f == null) null; S path = addFileSep(getCanonicalPath(f)); ret lowestByScoreFunction(mountPoints, mp -> startsWith(path, addFileSep(mp)) ? l(mp) : null); }