Function xplr::lua::util::absolute

source ·
pub fn absolute<'a>(util: Table<'a>, lua: &Lua) -> Result<Table<'a>>
Expand description

Get the absolute path of the given path by prepending $PWD. It doesn’t check if the path exists.

Type: function( path:string ) -> path:string

Example:

xplr.util.absolute("foo/bar")
-- "/tmp/foo/bar"