ARK-Builders / arklib

Core of the programs in ARK family
MIT License
1 stars 10 forks source link

Filesystem monitoring using `notify-rs` #92

Closed kirillt closed 5 months ago

kirillt commented 7 months ago

Can we benefit from this crate? https://github.com/notify-rs/notify

tareknaser commented 7 months ago

To recap our discussion: We've decided to add a method in arklib called ResourceIndex::watch_index() to monitor a specific directory for changes and update the index whenever a change is detected. For interacting with this method, we'll add a command to ark-cli which is ark-cli watch <path>

To further build on this, we plan to enhance this functionality to enable watching multiple directories simultaneously. This will be possible through the following commands:

We can also have a global configuration file, such as /Users/<username>/.ark/directories_to_watch, to store the list of directories to monitor.

tareknaser commented 5 months ago

We can close this issue in favor of https://github.com/ARK-Builders/ark-rust/issues/21