diff --git a/packages/clean-s3-cache.py b/packages/clean-s3-cache.py index be43d49c..a38d5d2d 100755 --- a/packages/clean-s3-cache.py +++ b/packages/clean-s3-cache.py @@ -135,7 +135,7 @@ def delete_object(key: str) -> None: def get_store_hashes() -> set[str]: hashes = set() - for obj in obj.listdir("/nix/store"): + for obj in os.listdir("/nix/store"): hashes.add(obj.split("-")[0]) async def main() -> None: