public final class FileSyncUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getRelativePath(java.io.File target,
java.io.File base) |
static java.lang.String |
getRelativePath(java.lang.String targetPath,
java.lang.String basePath) |
static java.lang.String |
getRelativePath(java.lang.String targetPath,
java.lang.String basePath,
java.lang.String pathSeparator)
Get the relative path from one file to another, specifying the directory
separator.
|
public static java.lang.String getRelativePath(java.io.File target,
java.io.File base)
public static java.lang.String getRelativePath(java.lang.String targetPath,
java.lang.String basePath)
public static java.lang.String getRelativePath(java.lang.String targetPath,
java.lang.String basePath,
java.lang.String pathSeparator)
targetPath - targetPath is calculated to this filebasePath - basePath is calculated from this filepathSeparator - directory separator. The platform default is not assumed so
that we can test Unix behaviour when running on Windows (for
example)