Class RelativPath
- java.lang.Object
-
- de.unirostock.sems.ModelCrawler.helper.RelativPath
-
public class RelativPath extends Object
-
-
Constructor Summary
Constructors Constructor Description RelativPath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File
getRelativeFile(File target, File base)
Returns the path of one File relative to another.
-
-
-
Method Detail
-
getRelativeFile
public static File getRelativeFile(File target, File base) throws IOException
Returns the path of one File relative to another.
copy'n'paste from @see stackoverflow.com/a/1269907- Parameters:
target
- the target directorybase
- the base directory- Returns:
- target's path relative to the base directory
- Throws:
IOException
- if an error occurs while resolving the files' canonical names
-
-