return file objects instead of paths

- don't call property as method
This commit is contained in:
George Lacey 2025-07-12 14:16:09 +01:00
parent 502e3a08da
commit d2d3e9c591
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class Album(Directory):
@property
def all_files(self) -> list:
# todo: handle unexpected dirs
return [file.path for file in self.contents]
return self.contents
def populate(self, log: Log) -> list:
contents = list()

View File

@ -35,7 +35,7 @@ class Directory(ABC):
files = list()
for c in self:
# todo: handle unexpected files
files += c.all_files()
files += c.all_files
return files
@property