Common Lisp library for watching files.
For now only supports Linux via inotify
, and only file modification events.
Start the file watch thread:
(file-watch:start)
Add an entry to watch for modifications:
(file-watch:add-entry "/path/to/file.txt"
(lambda (path)
(format t "File at ~A changed~%" path)))
Remove an entry:
(file-watch:remove-entry "/path/to/file.txt")
Stop the file watch thread:
(file-watch:stop)