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

nsfw: simplify event path resolution #11322

Merged
merged 5 commits into from
Jun 23, 2022
Merged

Conversation

paul-marechal
Copy link
Member

@paul-marechal paul-marechal commented Jun 21, 2022

NSFW already works on resolved paths. Our code had the issue of trying
to resolve paths on the filesystem when the file was moved or removed,
so it was bound to fail to some extend.

Closes #11258

How to test

See new unit test.

Review checklist

Reminder for reviewers

@paul-marechal paul-marechal added OS/Windows issues related to the Windows OS file-watchers issues related to filesystem watchers - nsfw labels Jun 21, 2022
NSFW already works on resolved paths. Our code had the issue of trying
to resolve paths on the filesystem when the file was moved or removed,
so it was bound to fail to some extend.
@paul-marechal paul-marechal force-pushed the mp/windows-fs-watch-path branch from 0ca05da to c9c46b3 Compare June 21, 2022 17:35
@paul-marechal
Copy link
Member Author

paul-marechal commented Jun 21, 2022

Not sure why macOS reports ADDED, ADDED, ADDED instead of ADDED, DELETED, ADDED...

@paul-marechal paul-marechal force-pushed the mp/windows-fs-watch-path branch from 3b34d19 to f8cbc75 Compare June 22, 2022 18:29
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

The changes are looking good to me 👍 Just one question, see below.

@paul-marechal paul-marechal merged commit 8cb49ec into master Jun 23, 2022
@paul-marechal paul-marechal deleted the mp/windows-fs-watch-path branch June 23, 2022 19:39
@github-actions github-actions bot added this to the 1.27.0 milestone Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
file-watchers issues related to filesystem watchers - nsfw OS/Windows issues related to the Windows OS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants