Janet 1.27.0-01aab66 Documentation
(Other Versions: 1.26.0 1.25.1 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

function (path/abspath path)
Coerce a path to be absolute.
Community Examples / source
function (path/abspath? path)
Check if a path is absolute.
Community Examples / source
function (path/basename path)
Gets the base file name of a path.
Community Examples / source
string path/delim
Platform delimiter
Community Examples / source
function (path/dirname path)
Gets the directory name of a path.
Community Examples / source
function (path/ext path)
Get the file extension for a path.
Community Examples / source
function (path/join & els)
Join path elements together.
Community Examples / source
function (path/normalize path)
Normalize a path. This removes . and .. in the path, as well as empty path elements.
Community Examples / source
function (path/parts path)
Split a path into its parts.
Community Examples / source
function (path/posix/abspath path)
Coerce a path to be absolute.
Community Examples / source
function (path/posix/abspath? path)
Check if a path is absolute.
Community Examples / source
function (path/posix/basename path)
Gets the base file name of a path.
Community Examples / source
string path/posix/delim
Platform delimiter
Community Examples / source
function (path/posix/dirname path)
Gets the directory name of a path.
Community Examples / source
function (path/posix/ext path)
Get the file extension for a path.
Community Examples / source
function (path/posix/join & els)
Join path elements together.
Community Examples / source
function (path/posix/normalize path)
Normalize a path. This removes . and .. in the path, as well as empty path elements.
Community Examples / source
function (path/posix/parts path)
Split a path into its parts.
Community Examples / source
function (path/posix/relpath source target)
Get the relative path between two subpaths.
Community Examples / source
string path/posix/sep
Platform separator
Community Examples / source
function (path/relpath source target)
Get the relative path between two subpaths.
Community Examples / source
string path/sep
Platform separator
Community Examples / source
function (path/win32/abspath path)
Coerce a path to be absolute.
Community Examples / source
function (path/win32/abspath? path)
Check if a path is absolute.
Community Examples / source
function (path/win32/basename path)
Gets the base file name of a path.
Community Examples / source
string path/win32/delim
Platform delimiter
Community Examples / source
function (path/win32/dirname path)
Gets the directory name of a path.
Community Examples / source
function (path/win32/ext path)
Get the file extension for a path.
Community Examples / source
function (path/win32/join & els)
Join path elements together.
Community Examples / source
function (path/win32/normalize path)
Normalize a path. This removes . and .. in the path, as well as empty path elements.
Community Examples / source
function (path/win32/parts path)
Split a path into its parts.
Community Examples / source
function (path/win32/relpath source target)
Get the relative path between two subpaths.
Community Examples / source
string path/win32/sep
Platform separator
Community Examples / source