FileSystem Watcher
Events
The FS Watcher picks up on the various events that can occur to a file. This will generally include:
- Create
- Rename
- Move
- Modify
- Delete
- Read
The different operating systems provide different events so we need to be generic. The table below shows how we handle the events:
| Event | Recorded as |
| Create | mod |
| Rename/Move * | del, mod |
| Modify | mod |
| Delete | del |
The rename/move events are interesting:
- If the user moves a file from a watched folder to another watched folder, we see a delete and a modify (create)
- If the user moved a file from a watched folder to an unwatched folder, we see a delete
- If the user moved a file from an unwatched folder to a watched folder, we see a modify (create)
- A renamed file in a watched folder is a delete and a create
