Janet 1.25.1-894cd0e Documentation
(Other Versions: 1.24.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.1 1.17.1 1.16.1 1.15.0 1.13.1 1.12.2 1.11.1 1.10.1 1.9.1 1.8.1 1.7.0 1.6.0 1.5.1 1.5.0 1.4.0 1.3.1 )

Path Utilities

Index

path/abspath path/abspath? path/basename path/delim path/dirname path/ext path/join path/normalize path/parts path/posix/abspath path/posix/abspath? path/posix/basename path/posix/delim path/posix/dirname path/posix/ext path/posix/join path/posix/normalize path/posix/parts path/posix/relpath path/posix/sep path/relpath path/sep path/win32/abspath path/win32/abspath? path/win32/basename path/win32/delim path/win32/dirname path/win32/ext path/win32/join path/win32/normalize path/win32/parts path/win32/relpath path/win32/sep


path/abspath function source
(posix/abspath path)

Coerce a path to be absolute.
Community Examples

path/abspath? function source
(posix/abspath? path)

Check if a path is absolute.
Community Examples

path/basename function source
(posix/basename path)

Gets the base file name of a path.
Community Examples

path/delim string source
Platform delimiter
Community Examples

path/dirname function source
(posix/dirname path)

Gets the directory name of a path.
Community Examples

path/ext function source
(ext path)

Get the file extension for a path.
Community Examples

path/join function source
(posix/join & els)

Join path elements together.
Community Examples

path/normalize function source
(posix/normalize path)

Normalize a path. This removes . and .. in the path, as well as empty path elements.
Community Examples

path/parts function source
(posix/parts path)

Split a path into its parts.
Community Examples

path/posix/abspath function source
(posix/abspath path)

Coerce a path to be absolute.
Community Examples

path/posix/abspath? function source
(posix/abspath? path)

Check if a path is absolute.
Community Examples

path/posix/basename function source
(posix/basename path)

Gets the base file name of a path.
Community Examples

path/posix/delim string source
Platform delimiter
Community Examples

path/posix/dirname function source
(posix/dirname path)

Gets the directory name of a path.
Community Examples

path/posix/ext function source
(ext path)

Get the file extension for a path.
Community Examples

path/posix/join function source
(posix/join & els)

Join path elements together.
Community Examples

path/posix/normalize function source
(posix/normalize path)

Normalize a path. This removes . and .. in the path, as well as empty path elements.
Community Examples

path/posix/parts function source
(posix/parts path)

Split a path into its parts.
Community Examples

path/posix/relpath function source
(posix/relpath source target)

Get the relative path between two subpaths.
Community Examples

path/posix/sep string source
Platform separator
Community Examples

path/relpath function source
(posix/relpath source target)

Get the relative path between two subpaths.
Community Examples

path/sep string source
Platform separator
Community Examples

path/win32/abspath function source
(win32/abspath path)

Coerce a path to be absolute.
Community Examples

path/win32/abspath? function source
(win32/abspath? path)

Check if a path is absolute.
Community Examples

path/win32/basename function source
(win32/basename path)

Gets the base file name of a path.
Community Examples

path/win32/delim string source
Platform delimiter
Community Examples

path/win32/dirname function source
(win32/dirname path)

Gets the directory name of a path.
Community Examples

path/win32/ext function source
(ext path)

Get the file extension for a path.
Community Examples

path/win32/join function source
(win32/join & els)

Join path elements together.
Community Examples

path/win32/normalize function source
(win32/normalize path)

Normalize a path. This removes . and .. in the path, as well as empty path elements.
Community Examples

path/win32/parts function source
(win32/parts path)

Split a path into its parts.
Community Examples

path/win32/relpath function source
(win32/relpath source target)

Get the relative path between two subpaths.
Community Examples

path/win32/sep string source
Platform separator
Community Examples