lua.wetgenes.path.root
local root=wpath.root(path)
This is a small utility function to perform a wpath.resolve then wpath.parse and return the root component of the result.
local root=wpath.root(path)
This is a small utility function to perform a wpath.resolve then wpath.parse and return the root component of the result.