catalog
This commit is contained in:
parent
3763dce133
commit
2e366f71f1
6 changed files with 25 additions and 37 deletions
4
local.py
4
local.py
|
@ -10,6 +10,10 @@ class Local(repository.Repository):
|
|||
super().__init__(arguments.directory)
|
||||
self.temporary = arguments.temporary
|
||||
|
||||
def get_file(self, path):
|
||||
with open(os.path.join(self.location, path), 'br') as f:
|
||||
return f.read()
|
||||
|
||||
def get_files(self, path):
|
||||
*_, files = next(os.walk(os.path.join(self.location, path)))
|
||||
return files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue