@Test public void stepUpOneFolder() throws IOException { final String baseDir = "/tmp/folder/subFolder"; final String testFile1 = "/tmp/folder/subFolder1/fileName1"; final String relPath = IoFileRelativePathUtil.getRelativePath(baseDir, testFile1, true, File.separatorChar); requireNonNull(relPath); assertEquals(STEP_UP + "subFolder1/fileName1", relPath); }
static String getRelativePath(final File from, final File to) { return getRelativePath(from, to, File.separatorChar); }
IoFileRelativePathUtil { static String getRelativePath(final File from, final File to) { return getRelativePath(from, to, File.separatorChar); } }
IoFileRelativePathUtil { static String getRelativePath(final File from, final File to) { return getRelativePath(from, to, File.separatorChar); } private  IoFileRelativePathUtil(); }
IoFileRelativePathUtil { static String getRelativePath(final File from, final File to) { return getRelativePath(from, to, File.separatorChar); } private  IoFileRelativePathUtil();  }
IoFileRelativePathUtil { static String getRelativePath(final File from, final File to) { return getRelativePath(from, to, File.separatorChar); } private  IoFileRelativePathUtil();   }