21 lines
397 B
JavaScript
Raw Normal View History

2026-01-25 04:58:39 +01:00
import "io" for File, Directory
var listWrenFiles
listWrenFiles = Fn.new { |path|
var items = Directory.list(path)
for (item in items) {
var fullPath = "%(path)/%(item)"
if (Directory.exists(fullPath)) {
listWrenFiles.call(fullPath)
} else if (item.endsWith(".wren")) {
System.print(fullPath)
}
}
}
listWrenFiles.call(".")