Erlang: create filewatcher

后端 未结 3 1521
鱼传尺愫
鱼传尺愫 2020-12-30 16:23

I have to implement file watcher functionality in Erlang: There should be a process that list files if specific directory and do something, when files appear.

I take

3条回答
  •  醉话见心
    2020-12-30 16:26

    I have written such a library, based on polling. (It would be nice to extend it to use inotify on platforms where this is supported.) It was originally meant to be used in EUnit, but I turned into a separate project instead. You can find it here:

    https://github.com/richcarl/file_monitor

提交回复
热议问题