diff --git a/userspace/usr/comma/debug.py b/userspace/usr/comma/debug.py index 8bce256..8cdb280 100755 --- a/userspace/usr/comma/debug.py +++ b/userspace/usr/comma/debug.py @@ -8,6 +8,8 @@ ROOT = Path("/cache/debug/") if __name__ == "__main__": + os.makedirs(ROOT, exist_ok=True) + boots = sorted(list(ROOT.iterdir()), key=lambda p: int(p.stem, 16), reverse=True) # limit to 100 boots