Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Filesystem monitoring using notify-rs #92

Closed
kirillt opened this issue Feb 29, 2024 · 2 comments
Closed

Filesystem monitoring using notify-rs #92

kirillt opened this issue Feb 29, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@kirillt
Copy link
Member

kirillt commented Feb 29, 2024

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

@kirillt kirillt added the enhancement New feature or request label Feb 29, 2024
@kirillt kirillt changed the title Filesystem monitoring using notify-rsWebDav, DTP, Google Cloud Filesystem monitoring using notify-rs Feb 29, 2024
@kirillt kirillt moved this to Todo in Development Feb 29, 2024
@kirillt kirillt moved this from Todo to In Progress in Development Mar 6, 2024
@tareknaser tareknaser self-assigned this Mar 8, 2024
@tareknaser
Copy link
Collaborator

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:

  • ark-cli watch --all to watch all specified directories.
  • ark-cli watch pin <path> to add a directory to the watch list.
  • ark-cli watch unpin <path> to stop watching a directory.
  • ark-cli watch list to list the directories currently being watched.

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
Copy link
Collaborator

We can close this issue in favor of ARK-Builders/ark-core#21

@github-project-automation github-project-automation bot moved this from In Progress to Done in Development Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants