Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move exclusions up before reading file/dir #371

Merged

Conversation

luca-medeiros-reef
Copy link

@luca-medeiros-reef luca-medeiros-reef commented Jun 12, 2024

Issue 496

_walk_relative_paths attempts to yield a File object for each file under a folder, applying exclusion policies only after accessing the file or directory attributes (with is_file_readable).

Copy link

@mjurbanski-reef mjurbanski-reef left a comment

Choose a reason for hiding this comment

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

Looks nice, but thorough unit tests that would fail before your change and succeed after it need to be added.

image

@luca-medeiros-reef
Copy link
Author

luca-medeiros-reef commented Jun 12, 2024

@mjurbanski-reef added tests that break in the current master branch and refactoring

@luca-medeiros-reef
Copy link
Author

Checking breaking tests...

Copy link

@mjurbanski-reef mjurbanski-reef left a comment

Choose a reason for hiding this comment

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

looks good, last two minor comments

@luca-medeiros-reef
Copy link
Author

Resolved comments

Copy link

@mjurbanski-reef mjurbanski-reef left a comment

Choose a reason for hiding this comment

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

👍
please create PR against upstream

@mjurbanski-reef mjurbanski-reef merged commit 1b3189e into reef-technologies:master Jun 15, 2024
26 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