Skip to content

chip2n/trivial-file-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trivial-file-watch

Common Lisp library for watching files.

For now only supports Linux via inotify, and only file modification events.

Usage

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)

About

Common Lisp library for watching files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published