Is it possible to have a listener be called whenever a file is moved or deleted? Preferably, I would be able to abort the action, but this is not required. I would need to know the original and, if applicable, destination path though. The program could be a bash script, a swift function, an applescript, automator, etc. This could likely by accomplished with OSXFuse, but I would like it to work with any filesystem.

New contributor
Pixelated Fish is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

You must log in to answer this question.

Browse other questions tagged .