vkatsuba
vkatsuba

Reputation: 1459

Does Erlang have some functionality for monitoring folder for case when folder was changed?

Does Erlang have some functionality for watching folder when it was changed in real time? Eg., we have a folder and try detect if this folder was changed, we call function for start watching of this folder and if folder size was changed will be output some warning. I know that the Erlang have disksup but looks like as result will be return free space on disk only and this functionality is a similar like $ df -k. I was find some topic for Python watch and I’m interesting if Erlang has a similar built-in functionality.

Upvotes: 4

Views: 157

Answers (2)

vkatsuba
vkatsuba

Reputation: 1459

The Erlang don't have functionality for monitoring folder from the box, but this can be implemented by custom libraries like:

Upvotes: 1

user1720740
user1720740

Reputation: 848

You could take example of that : https://github.com/vans163/rebar3_auto/blob/master/src/rebar3_auto.erl

It is an implementation that does more or less what you want. I don't know if there is a more integrated way of doing it.

Upvotes: 4

Related Questions