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

Add inotify CLOSE events #298

Closed
wants to merge 1 commit into from
Closed

Add inotify CLOSE events #298

wants to merge 1 commit into from

Conversation

fishman
Copy link

@fishman fishman commented Jul 16, 2019

inotify notifies when files have finished being written to. To reliably
detect if a write to a file has finished the event necessary is
CLOSE_WRITE.

What does this pull request do?

Adds CLOSE_WRITE and CLOSE_NOWRITE support for linux

Where should the reviewer start?

How should this be manually tested?

On a Linux machine you can just copy a file into a folder. Close will be triggered even when a file is not changed.

Update will only trigger when a write was recently finished.

inotify notifies when files have finished being written to. To reliably
detect if a write to a file has finished the event necessary is
CLOSE_WRITE.
@nathany
Copy link
Contributor

nathany commented Oct 5, 2019

Sorry, but adding new events that only work on Linux and don't do anything on the other supported platforms isn't a great solution.

If you have some ideas, please discuss on #22.

@nathany nathany closed this Oct 5, 2019
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.

None yet

3 participants