listDir
public func listDir(String) -> Array[String]Returns the names of the entries inside path, excluding . and ...
Wraps opendir/readdir/closedir. The returned names are
relative to path; join with path yourself if you need full
paths. On failure to open the directory (missing path, permission
denied, etc.), returns an empty array — the function does not
distinguish "empty directory" from "open failed".
Examples
for entry in listDir("/tmp") {
print(entry);
}Defined in lang/std/os/fs.ks