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