diff --git a/dissect/fat/fat.py b/dissect/fat/fat.py index b2206d8..d1a200e 100644 --- a/dissect/fat/fat.py +++ b/dissect/fat/fat.py @@ -160,7 +160,8 @@ def __init__(self, fh, fattype): self.entry_count = int(self.fh.size // (self.bits_per_entry / 8)) - @lru_cache(4096) + self.get = lru_cache(4096)(self.get) + def get(self, cluster): if cluster >= self.entry_count: raise ValueError(f"Cluster exceeds FAT entry count: {cluster} >= {self.entry_count}")