public class FilePathUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
relativize(File baseDir,
File file)
Return the relative path.
|
static String |
relativize(java.nio.file.Path baseDir,
java.nio.file.Path file)
Return the relative path.
|
public static String relativize(File baseDir, File file)
baseDir - a parent directory of filefile - the file to get the relative pathpublic static String relativize(java.nio.file.Path baseDir, java.nio.file.Path file)
baseDir - a parent directory of filefile - the file to get the relative pathCopyright © 2017. All Rights Reserved.