repository
This commit is contained in:
parent
d28883d3d4
commit
9e1e6238fb
1 changed files with 19 additions and 0 deletions
19
repository.py
Normal file
19
repository.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import arguments
|
||||||
|
import datetime
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
class Repository:
|
||||||
|
def __init__(self, args):
|
||||||
|
self.directory = args[arguments.DIRECTORY]
|
||||||
|
self.temporary = args[arguments.TEMPORARY]
|
||||||
|
self.tmp = os.path.join(self.temporary,
|
||||||
|
datetime.datetime.now()
|
||||||
|
.strftime('%Y%m%d%H%M%S'))
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f'''\
|
||||||
|
Directory: {self.directory}
|
||||||
|
→ {os.path.realpath(self.directory)}
|
||||||
|
Temporary: {self.tmp}
|
||||||
|
'''
|
Loading…
Reference in a new issue