joh/when-changed

Deleted files do not trigger action when watching a directory.

ronzil opened this issue · 3 comments

creating of a new file triggers the action, so it makes sense that deleting a file would do that also.

Hi,
I also think it is a good idea, but it implies to distinguish an event from others.
Maybe should it be addressed by setting an environment variable as it was suggested in issue #64 and PR #72 for what have changed, eg. WHEN_CHANGED_EVENT.
If you are OK with this idea, I should be able to work on it soon.

Should be closed as it was solved by #75

I am also experiencing this difficulty.

When I start, and execute the file change it executes the command correctly. But from the second change, which is to delete the file and copy it back to the same directory, it does not execute.

Can someone help me please?