Return a string representation of the path with forward slashes (/):
PurePath.as_posix()
>>> p = PureWindowsPath('c:\\windows') >>> str(p) 'c:\\windows' >>> p.as_posix() 'c:/windows'