Skip to content

Commit

Permalink
return appropriate files
Browse files Browse the repository at this point in the history
  • Loading branch information
horheynm committed Sep 6, 2023
1 parent 8035607 commit 00fec74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparsezoo/objects/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_file(self, file_name: str) -> Optional[File]:
for file in self.files:
if file is None:
continue
if file.name == file_name:
if file_name in file.name:
return file
if isinstance(file, Directory):
file = file.get_file(file_name=file_name)
Expand Down

0 comments on commit 00fec74

Please sign in to comment.