Files & processes · BUILT-IN MODULE

glob

Filesystem wildcard matching.

Quick start

use glob
use glob

say glob.match "*.se" "app.se"
files = try glob.find "src/*.se"
say files

API reference

glob.match pattern text

Match Text against a wildcard pattern.

比對 Text against a wildcard pattern.
glob.find pattern

Find filesystem paths by wildcard. Fallible.

尋找 filesystem paths by wildcard. 此操作可能失敗。