fs module
Open files, inspect filesystem entries, and manage paths on disk.
Import it with 'use fs'.
use fs
print(fs.exists('.'))
true
Requires libuv and filesystem permission. Paths are nonempty text without embedded NUL. Use open → read/write → close for files that stay open across operations. File offsets are byte offsets even in text mode. Temporary paths are real files/directories and must be removed when finished.