mirror of
https://github.com/upa/mscp.git
synced 2026-05-18 10:29:37 +08:00
test: add __repr__ to File
This commit is contained in:
@@ -16,6 +16,9 @@ class File():
|
|||||||
self.content = content
|
self.content = content
|
||||||
self.perm = perm
|
self.perm = perm
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "<file:{} {}-bytes>".format(self.path, self.size)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.path
|
return self.path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user