(Mar-21-2018, 09:50 AM)DeaD_EyE Wrote:str(your_path.resolve())
The methodresolve
returns a new Path object.
Path objects have a magic method for str and bytes (__str__, __bytes__).
str(pathobject) -> returns a str of the path
see my original post.
(Mar-21-2018, 09:50 AM)DeaD_EyE Wrote:str(your_path.resolve())
The methodresolve
returns a new Path object.
Path objects have a magic method for str and bytes (__str__, __bytes__).
str(pathobject) -> returns a str of the path
also:
resolve
requires that the file exist. we need a PurePath version of that just for resolving /../
. also a Path version for resovling both /../
and symlinks
that gracefully ends when a non-existing directory is encountered.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.