1>>> import pathlib
2>>> p = pathlib.PureWindowsPath(r'\dir\anotherdir\foodir\more')
3>>> print(p)
4\dir\anotherdir\foodir\more
5>>> print(p.as_posix())
6/dir/anotherdir/foodir/more
7>>> str(p)
8'\\dir\\anotherdir\\foodir\\more'
9>>> str(p.as_posix())
10'/dir/anotherdir/foodir/more'
11