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

tweak resolve_valid_paths not to return directories #446

Conversation

c-nixon
Copy link
Collaborator

@c-nixon c-nixon commented Nov 9, 2022

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

@c-nixon c-nixon force-pushed the LOG-14748-app-name-and-_file-incorrect-when-symlink-alias-present branch from a01997b to add17b3 Compare November 9, 2022 15:53
.iter()
{
.filter_map(|path: PathBuf| {
fs::read_dir(&path).ok().map(|entries| {
Copy link
Contributor

@stsantilena stsantilena Nov 10, 2022

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"?

Copy link
Collaborator Author

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

Copy link
Contributor

@stsantilena stsantilena left a 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! 🚢

@c-nixon c-nixon force-pushed the LOG-14748-app-name-and-_file-incorrect-when-symlink-alias-present branch 7 times, most recently from f72c7f5 to 35f93fb Compare November 21, 2022 16:05
@c-nixon c-nixon force-pushed the LOG-14748-app-name-and-_file-incorrect-when-symlink-alias-present branch from 35f93fb to fb06491 Compare December 2, 2022 15:20
@c-nixon c-nixon force-pushed the LOG-14748-app-name-and-_file-incorrect-when-symlink-alias-present branch from e6871cf to 0163a16 Compare December 2, 2022 20:56
@c-nixon c-nixon merged commit 1ad970d into master Dec 5, 2022
@c-nixon c-nixon deleted the LOG-14748-app-name-and-_file-incorrect-when-symlink-alias-present branch December 5, 2022 10:45
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