lua.wetgenes.path.parent
Resolve input and go up a single directory level, ideally you should pass in a directory, IE a string that ends in / or \ and we will return the parent of this directory.
If called repeatedly, then eventually we will return wpath.root