mutapath.Path.splitall

Path.splitall()[source]

Return a list of the path components in this path.

The first item in the list will be a Path. Its value will be either os.curdir, os.pardir, empty, or the root directory of this path (for example, '/' or 'C:\\'). The other items in the list will be strings.

path.Path.joinpath(*result) will yield the original path.