This commit is contained in:
Marc Beninca 2021-10-10 21:30:40 +02:00 committed by Marc Beninca
parent 3763dce133
commit 2e366f71f1
6 changed files with 25 additions and 37 deletions

View file

@ -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