Skip to content

loggerd/deleter: handle non-directory entries in log root#37736

Open
knQzx wants to merge 1 commit intocommaai:masterfrom
knQzx:fix/deleter-handle-non-directory-entries
Open

loggerd/deleter: handle non-directory entries in log root#37736
knQzx wants to merge 1 commit intocommaai:masterfrom
knQzx:fix/deleter-handle-non-directory-entries

Conversation

@knQzx
Copy link
Copy Markdown

@knQzx knQzx commented Mar 26, 2026

os.listdir and shutil.rmtree both fail on plain files, so if something other than a segment directory ends up in the log root it just sits there forever eating disk space. now checks isdir first and uses os.remove for stray files

fixes #30102

os.listdir and shutil.rmtree both fail on plain files.
if a user drops a file in the log root it just sits there
forever eating disk space. now checks isdir first and
uses os.remove for files

fixes commaai#30102
@github-actions
Copy link
Copy Markdown
Contributor

Process replay diff report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

✅ 0 changed, 66 passed, 0 errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deleter: handle non-openpilot created files

1 participant