I've been searching for what seems like hours for how to get a real path in string format from a pathlib.PosixPath
using pathlib.
The only solution I can find is this:
str(myPathObject.resolve())
This seems messy. Am I missing something or is this only solution that exists?
Edit:
To clarify, this is giving me a filepath /opt/digglerz/projects
of type string, which is what i want. This seems a long way to do this, is there no better way?