Class PathOperations
Object
PathOperations
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertToString(Path path) Converts a path to a string, making sure it uses UNIX-style separators.static PathfilePathDifference(Path baseDirectoryPath, Path filePath) Finds the difference between a path and a base.
-
Method Details
-
filePathDifference
public static Path filePathDifference(Path baseDirectoryPath, Path filePath) throws PathDifferenceException Finds the difference between a path and a base.- Parameters:
baseDirectoryPath- path to a base directory.filePath- the path to resolve.- Returns:
- the difference between the paths.
- Throws:
PathDifferenceException- if the canonical file cannot be found.
-
convertToString
-