Array of paths in the pattern directory matching the file name
let entries =fs.listdir("src")
for name in entries {
print(name)
}
let scripts =fs.glob("src/*.pyl")
print(scripts)
for relative infs.walk("examples") {
print(relative)
}
fs.listdir returns names only, not full paths, and does not include . or ... fs.walk always recurses and returns paths relative to the root. fs.glob matches the final path component against * and ? only; it does not recurse, and ** is not special. Neither listdir, walk, nor glob sorts; their order is filesystem-dependent.
The browser playground uses Emscripten’s in-memory filesystem. Files written by a script exist only for that run and are discarded when the page reloads. The standard library files bundled into the build are readable.