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(".")
|