magicmethods
magicmethods copied to clipboard
__fspath__
New in version 3.6.
abstractmethod
__fspath__()
Return the file system path representation of the object.The method should only return a
str
orbytes
object, with the preference being forstr
. https://docs.python.org/3/library/os.html#os.PathLike.fspath