From 00fec74ebb92c89971aca25107c8148fb267c21a Mon Sep 17 00:00:00 2001 From: horheynm Date: Wed, 6 Sep 2023 15:30:44 +0000 Subject: [PATCH] return appropriate files --- src/sparsezoo/objects/directory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparsezoo/objects/directory.py b/src/sparsezoo/objects/directory.py index f83e06f2..bc18d302 100644 --- a/src/sparsezoo/objects/directory.py +++ b/src/sparsezoo/objects/directory.py @@ -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)