v/vlib/v/tests/inout/os.vv

14 lines
208 B
V

import os
fn main() {
vexe := os.getenv('VEXE')
vroot := os.dir(vexe)
mut files := os.ls(vroot) or { panic(err) }
files.sort()
for file in files {
if file.ends_with('.md') {
println(file)
}
}
}