file
This commit is contained in:
parent
e90a4396fa
commit
ec6a6e07e1
2 changed files with 30 additions and 1 deletions
20
file.py
Normal file
20
file.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import os
|
||||
|
||||
|
||||
class File:
|
||||
def __init__(self, remote, name, size, local, hash):
|
||||
self.remote = remote
|
||||
self.name = name
|
||||
self.size = size
|
||||
self.local = local
|
||||
self.hash = hash
|
||||
|
||||
def __str__(self):
|
||||
lines = [
|
||||
f'Remote: {self.remote}',
|
||||
f' Name: {self.name}',
|
||||
f' Size: {self.size}',
|
||||
f' Local: {self.local}',
|
||||
f' Hash: {self.hash}',
|
||||
]
|
||||
return os.linesep.join(lines)
|
Loading…
Add table
Add a link
Reference in a new issue