Hmm...I'm not sure of the utility of this. If `x` is a relative path, what directory is considered the current directory in order to get its parent? And if it's absolute, you already know the parent, unless it's another token, in which case you could just as easily append a path separator and `..` to get the parent.