Comments (2)
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.
from arklib.
Related Issues (20)
- Declare storage path constants
- Write files atomically
- Better privacy with random unique device ids HOT 2
- Better privacy with hashing `machine-uid` ids HOT 1
- Better handling of _id_ collisions
- Darwin (macOS) and `machine-uid` crate HOT 1
- ARK Shelf crashes when loading some test data HOT 2
- Absent index file and parse errors handling
- Benchmark `crc32` and `blake3` hash functions HOT 3
- "First discovered" attribute of resources
- "Created" date HOT 1
- `Invalid cross-device link` crash when working with temporary files HOT 5
- Index generic over hash function HOT 8
- Benchmark faster hash functions HOT 10
- Test Clean-Up necessary HOT 1
- Generate profiles for index construction HOT 1
- Store relative paths in the index mappings HOT 1
- Empty index is generated if name of the root folder starts with `.` HOT 1
- Refactor the API for `ResourceIndex` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arklib.