add: path __str__ and __repr__
This commit is contained in:
parent
bb0973917d
commit
70da0a2c28
@ -52,3 +52,9 @@ class Path():
|
|||||||
if (os.path.isfile(path.get_absolute_path())):
|
if (os.path.isfile(path.get_absolute_path())):
|
||||||
files.append(path)
|
files.append(path)
|
||||||
return files
|
return files
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self._absolute_path
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return f"Path({self._absolute_path})"
|
Loading…
Reference in New Issue
Block a user