Skip to content

Don't recursively walk local-only dirs with NO_DELETE#120

Merged
I-Al-Istannen merged 1 commit into
Garmelon:masterfrom
Mr-Pine:no-delete-dirs
Jul 2, 2026
Merged

Don't recursively walk local-only dirs with NO_DELETE#120
I-Al-Istannen merged 1 commit into
Garmelon:masterfrom
Mr-Pine:no-delete-dirs

Conversation

@Mr-Pine

@Mr-Pine Mr-Pine commented Jun 8, 2025

Copy link
Copy Markdown
Contributor

This PR consolidates not deleted reports/log messages for whole directories that are only available locally. This avoids the performance impact of recursively looking at local-only directories with a lot of files (for example venvs)

Comment thread PFERD/report.py
return path in self.marked

def contains_marked(self, path: PurePath) -> bool:
return any(marked_file.is_relative_to(path) for marked_file in self.marked)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe mark the parents and do not build an n² algo?

@I-Al-Istannen

Copy link
Copy Markdown
Collaborator

Did you update this in the end?

@I-Al-Istannen I-Al-Istannen merged commit d2eb8a2 into Garmelon:master Jul 2, 2026
6 checks passed
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.

2 participants