diff --git a/atrcopy/diskimages.py b/atrcopy/diskimages.py index 638a885..674459f 100644 --- a/atrcopy/diskimages.py +++ b/atrcopy/diskimages.py @@ -286,7 +286,7 @@ class DiskImageBase(object): if hasattr(filename, "filename"): return filename for dirent in self.files: - if filename_or_dirent == dirent.filename: + if filename == dirent.filename: return dirent raise FileNotFound("%s not found on disk" % filename)