public class FileHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
getAbsoluteFile(File basedir,
File file)
If the file does not refer to an absolute path, return the file relative to the given basedir.
|
static File |
getAbsoluteFile(File basedir,
String file) |
static String |
relativizePath(File base,
File target) |
public static String relativizePath(File base, File target) throws IOException
IOExceptionpublic static File getAbsoluteFile(File basedir, File file)
basedir - Directory to which the file is relative.file - File to make absolute.Copyright © 2009–2018 Andre Wachsmuth. All rights reserved.