public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static File[] |
breakPaths(String paths) |
static File |
getRelativeFile(File workingDirectory,
File targetFile)
Returns a relative path for the targetFile relative to the base directory.
|
static String |
truncatePath(String path,
String baseDirectory) |
public static File getRelativeFile(File workingDirectory, File targetFile)
canonicalBase - base directory as returned by File.getCanonicalPath()targetFile - target fileCopyright © 2018 MojoHaus. All rights reserved.