Atom

fs module

Open files, inspect filesystem entries, and manage paths on disk.

Import it with 'use fs'.

Atom
use fs
print(fs.exists('.'))
Output
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.

Functions