Is there a file/folder watch api in Elixir or erlang?

755 views
Skip to first unread message

Frank Liu

unread,
Mar 21, 2015, 5:06:36 PM3/21/15
to elixir-l...@googlegroups.com
In node, there's fileSystem.watch(path, ...). Is there something like that in Elixir or Erlang?

José Valim

unread,
Mar 21, 2015, 5:56:42 PM3/21/15
to elixir-l...@googlegroups.com



José Valim
Skype: jv.ptec
Founder and Lead Developer

On Sat, Mar 21, 2015 at 10:06 PM, Frank Liu <gni...@gmail.com> wrote:
In node, there's fileSystem.watch(path, ...). Is there something like that in Elixir or Erlang?

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/af03d313-97b3-4c11-a0b0-e4aee22fee98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Frank Liu

unread,
Apr 3, 2015, 2:56:50 PM4/3/15
to elixir-l...@googlegroups.com, jose....@plataformatec.com.br
Hi Jose,

Thank you so much for the reply. I looked at the library and it's awesome. 

However, one thing I can't figure out is how to get it to watch multiple directories without going up to the common root. I looked at the code and it seems (to my noobie eyes) that this is structured as an app, which means it is singleton. Is this correct? Can I spawn multiple processes and manually start the app in each spawned process and customize the path there?

Frank

José Valim

unread,
Apr 3, 2015, 3:35:45 PM4/3/15
to elixir-l...@googlegroups.com
Yeah, it is singleton and currently it can only watch one path.



José Valim
Skype: jv.ptec
Founder and Lead Developer

Reply all
Reply to author
Forward
0 new messages