This question already has an answer here:
I am using
watchdog, a python package to monitor changes in the file system. The code works fine on Mac but it seems that the delete event is not monitored correctly in ubuntu. If I do a
rm instead of move the file to trash,
watchdog is able to detect the change. I am wondering whether there is a difference between moving to trash and
rm command on the terminal in ubuntu that might lead to this behavior.
Thank you very much!