-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfile.py
More file actions
32 lines (26 loc) · 710 Bytes
/
Copy pathfile.py
File metadata and controls
32 lines (26 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class File:
def __init__(self,
hash,
path,
size,
type_general,
creation_time):
self.hash = hash
self.path = path
self.size = size
self.type_general = type_general
self.creation_time = creation_time
class FileNFT:
def __init__(self,
nft_id,
file_hash,
status,
file_name):
self.nft_id = nft_id
self.file_hash = file_hash
self.status = status
self.file_name = file_name
def set_file(self, file):
self.file = file
def get_file(self):
return self.file