Stops the watcher and releases all resources. Called automatically during shutdown.
Sets the callback function invoked when volume events occur.
Called with the event name and an info dictionary; see type documentation for event names and info keys.
self, for chaining
A volume event watcher that monitors filesystem mount/unmount/rename events. Create via
hs.fs.addVolumeWatcher(). Set a callback withsetCallback(), then callstart()to begin receiving events."didMount"path: string"didUnmount"path: string"willUnmount"path: string"didRename"path: string,name: string,oldPath?: string,oldName?: string