
根据 Unix shell 风格模式匹配文件路径。
适用于仓颉的 glob 库,参照 glob 开发
用法
在依赖中添加:
[dependencies]
glob = { git = "https://github.com/Zxilly/glob-cj.git", branch = "master" }
然后在代码中使用:
import glob
main(): Int64 {
for (i in glob.glob("*")) {
println(i)
}
return 0
}
文档
请查看 文档