Is there a way to use watchdog for watching a shared mounted network drive in linux and report when someone else on the network copies files to that folder?
Thank You!
It depends.
So, to conclude, you're out of luck unless you want to write the inotify broker mentioned in the SO answer.
A side note: At PyPi index, there is a section with Caveats. I haven't found anything about network drives there, though it should be mentioned there in my view.
should not work with inotify
@alt3red -- Yes, use PollingObserver
.
Closing as there is a note in the README.
Most helpful comment
@alt3red -- Yes, use
PollingObserver
.More info: https://pythonhosted.org/watchdog/api.html?highlight=observedwatch#watchdog.observers.polling.PollingObserver