// retoor <retoor@molodetz.nl>
|
|
|
|
import "pathlib" for Path
|
|
|
|
var p1 = Path.new("/home/user")
|
|
System.print(p1.isAbsolute) // expect: true
|
|
System.print(p1.root) // expect: /
|
|
System.print(p1.anchor) // expect: /
|
|
|
|
var p2 = Path.new("relative/path")
|
|
System.print(p2.isAbsolute) // expect: false
|
|
System.print(p2.root) // expect:
|
|
System.print(p2.anchor) // expect:
|