PurePath.as_uri()
Represent the path as a file
URI. ValueError
is raised if the path isn’t absolute.
1 2 3 4 5 6 | >>> p = PurePosixPath( '/etc/passwd' ) >>> p.as_uri() >>> p = PureWindowsPath( 'c:/Windows' ) >>> p.as_uri() |
PurePath.as_uri()
Represent the path as a file
URI. ValueError
is raised if the path isn’t absolute.
1 2 3 4 5 6 | >>> p = PurePosixPath( '/etc/passwd' ) >>> p.as_uri() >>> p = PureWindowsPath( 'c:/Windows' ) >>> p.as_uri() |
Designed by : w10schools
service@w10schools.com
Please login to continue.