// retoor <retoor@molodetz.nl>
|
|
|
|
import "pathlib" for Path
|
|
|
|
var p1 = Path.new("/home/user/file.txt")
|
|
System.print(p1.match("*.txt")) // expect: true
|
|
System.print(p1.match("*.py")) // expect: false
|
|
System.print(p1.match("file.*")) // expect: true
|
|
System.print(p1.match("f???.*")) // expect: true
|
|
System.print(p1.match("*")) // expect: true
|