Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
horheynm committed Sep 8, 2023
1 parent 77ec763 commit e35a4e2
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 == os.path.basename(file_name):
if file.name == os.path.basename(file_name):
return file
if isinstance(file, Directory):
file = file.get_file(file_name=file_name)
Expand Down

0 comments on commit e35a4e2

Please sign in to comment.