Atom

fs.exists()

Tests whether an entry can be inspected.

Signature

fs.exists(path)

Parameters

Text path.

Returns

Boolean.

Behavior

Uses entry metadata, including symbolic links. Lookup failure returns false.

Errors

Invalid input or denied filesystem capability.

Example

Atom
use fs
p = fs.temporary_file()
assert(fs.exists(p))
fs.remove(p)