Documentation
¶
Overview ¶
Package fsmod is the native module "fs": directories and files of the local file system (TODO.md Q61).
use fs;
for (local e in fs::readdir(".")) println(e["name"], e["dir"] ? "/" : e["size"]);
fs::walk("src", fn(path, e) { if (fs::ext(path) == ".kkl") println(path); });
An entry is a map: name, size, dir, link, mode and time (a time::Time). What fails is an IOError. Symbolic links are not followed by walk.
Click to show internal directories.
Click to hide internal directories.