Fix clean-s3-cache code to use os.listdir

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-29 19:19:16 +01:00
parent c846546663
commit 12567f20f6
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -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: