Standard Path Operations
Comparison and queryoperations as well as making new paths relative to a base path
Compare Paths
Compare two paths. Some are lexigraphic, for sorting Paths by name for example, and others are for comparing paths or age of paths
import scalax.file.Path
val path: Path = Path("file")
// several simple path comparison queries
val endsWith: Boolean = path.endsWith(Path("file"))
val startsWith: Boolean = path.startsWith(Path("file"))
val isSame: Boolean = path.isSame(Path("file"))
val isFresher: Boolean = path.isFresher(Path("/", "tmp", "file"))
//several lexigraphic comparisons
val lessThan: Boolean = path < Path("other")
val lessThanEqual: Boolean = path <= Path("other")
val greaterThan: Boolean = path > Path("other")
val greaterThanEqual: Boolean = path >= Path("other")
val compare: Int = path.compare(Path("other"))
val compareTo: Int = path.compareTo(Path("other"))