public class FileUtil extends Object
Constructor | Description |
---|---|
FileUtil() |
Modifier and Type | Method | 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 © 2019 MojoHaus. All rights reserved.