https://github.com/dee0xeed/edsm-in-zig-demo-3
file system events
https://github.com/dee0xeed/edsm-in-zig-demo-3
event-driven filesystem-events inotify linux state-machines zig
Last synced: 7 months ago
JSON representation
file system events
- Host: GitHub
- URL: https://github.com/dee0xeed/edsm-in-zig-demo-3
- Owner: dee0xeed
- License: other
- Created: 2022-11-08T21:37:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T14:00:19.000Z (about 2 years ago)
- Last Synced: 2024-10-24T16:50:32.995Z (12 months ago)
- Topics: event-driven, filesystem-events, inotify, linux, state-machines, zig
- Language: Zig
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# File System Events
This project shows how to track file system
activity using event driven state machines.## Examples
### Scanning directory
```
file system events = 0x40000020
DirMon-1 @ WORK got 'F5' from OS
'/tmp/test/': opened
file system events = 0x40000001
DirMon-1 @ WORK got 'F0' from OS
'/tmp/test/': accessed
file system events = 0x40000001
DirMon-1 @ WORK got 'F0' from OS
'/tmp/test/': accessed
file system events = 0x40000010
DirMon-1 @ WORK got 'F4' from OS
'/tmp/test/': closed (read)
```### Touching a file
```
file system events = 0x00000020
DirMon-1 @ WORK got 'F5' from OS
'a': opened
file system events = 0x00000004
DirMon-1 @ WORK got 'F2' from OS
'a': metadata changed
file system events = 0x00000008
DirMon-1 @ WORK got 'F3' from OS
'a': closed (write)
```