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

Linux: Creating a new file outputs two duplicate paths #5

Open
jdspugh opened this issue Nov 29, 2023 · 0 comments
Open

Linux: Creating a new file outputs two duplicate paths #5

jdspugh opened this issue Nov 29, 2023 · 0 comments

Comments

@jdspugh
Copy link
Owner

jdspugh commented Nov 29, 2023

touch a

or

echo '' > a

will results in duplicate paths output by jp-watch

/path/a
/path/a

This is because both a FAN_CREATE and a FAN_ATTRIB event is emitted for the same path. A solution could be storing the last path in the app's main event processing loop and use it to eliminate duplicate paths through loop iterations.

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

No branches or pull requests

1 participant