Closed fsobanski closed 6 years ago
Alright, when I change the lower example code to the following, then the events are fired again.
require 'rb-inotify'
notifier = INotify::Notifier.new
f = File.new 'foo.txt', 'w'
f.close
notifier.watch('foo.txt', :delete_self) {puts "foo.txt was deleted!"}
File.delete 'foo.txt'
notifier.process
And when I change :delete_self
to :delete
, only one event is emitted as expected.
Hi,
when I create the script
asdf.rb
with the following contentand then execute the following commands under Debian:
I get the output:
So the event fired twice. Do you know why?
When I execute the following script instead:
then I get no output at all. So the event never fired...