Copyright | (c) Dong Han 2017-2020 |
---|---|
License | BSD |
Maintainer | winterland1989@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides fs watcher based on libuv's fs_event, we also maintain watch list if target OS doesn't support recursive watch(Linux's inotify).
-- start watching threads, use returned close function to cleanup watching threads. (close, srcf) <- watchDirs ["fold_to_be_watch"] -- dup a file event source src <- srcf -- print event to stdout runBIO $ src >|> sinkToIO printLineStd
Documentation
File event with path info.