-
Notifications
You must be signed in to change notification settings - Fork 46
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
tweak resolve_valid_paths not to return directories #446
tweak resolve_valid_paths not to return directories #446
Conversation
a01997b
to
add17b3
Compare
.iter() | ||
{ | ||
.filter_map(|path: PathBuf| { | ||
fs::read_dir(&path).ok().map(|entries| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "entries" referring to filename, or SlopMap "entries"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, bad name it's the directory entries from read_dir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small question. LGTM! 🚢
f72c7f5
to
35f93fb
Compare
Use seperate target_dirs for each integration test
35f93fb
to
fb06491
Compare
e6871cf
to
0163a16
Compare
This adds some additional logic to the fs cache in order to make sure the resolve_valid_paths function never returns a directory. This fix exposed a bug in the FS initialisation logic which caused files not to be added