Skip to content
NIF-based linux file system events
C Elixir
Latest commit 2eb3c94 Nov 23, 2015 @jquadrin Merge pull request #2 from Nananas/master
Fix: overlapping dir_ & mask_ strings. Segmentation fault with large strings.
Failed to load latest commit information.
lib
src
test
.gitignore
.travis.yml
README.md
mix.exs

README.md

cassius

Build Status

monitor linux file system events


Cassius.watch("lib", :all)    # monitor events in a directory


monitored events are sent to the caller's pid

{:open, foobar}               #  {event, file_path} 


These are the events you can monitor specifically (:all monitors all events)

event defn.
:close file closed
:access file accessed
:attrib file metadata changed
:close_write file wrote and closed
:close_no_write file closed without write
:create file/directory created
:delete file/directory deleted
:delete_self file/directory itself deleted
:modify file modified
:move_self file/directory itself moved
:moved_from file left dir
:moved_to file entered dir
:open file opened
Something went wrong with that request. Please try again.