Atom

path module

Join, split, and normalize filesystem paths.

Import it with 'use path'.

Atom
use path
print(path.extension('main.atom'))
Output
atom

Requires libuv. Operations resolve path components lexically. They do not follow symlinks. Unless specified, style is the host style. Where accepted, style is the string unix or windows. Absolute resolution using the working directory requires process permission. Windows paths recognize drives and UNC roots. Text arguments reject embedded NUL.

Functions