I'm trying to backup a file before it gets deleted. Can someone tell me if inotify triggers the event before or after deletion?
The IN_DELETE is triggered when a file/directory is deleted in the watched directory, ie after the deletion.