path-root

Get the root of a posix or windows filepath.