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