Akram9 / sync

A syncthing-like computer-only synchroniser
0 stars 0 forks source link

Watching while sleeping #3

Closed Akram9 closed 4 years ago

Akram9 commented 5 years ago

Keep watchdog or watcher forever on, unless forcibly closed.

Else create a syncthing like on-off watcher with list of files and last modified date amd time.

Akram9 commented 5 years ago

The best way to do this, if kept alongside watchdog, is to create an on-off watching facility, that checks for the changes in a directory on startup, from the time it has been shutdown.

A primary list of objects of a directory can be saved on first run of syncing program, and amended as syncing occurs. So this would keep the list of contents of a directory, which could be compared on startup of program later on. Checking the whole directory on startup would require some time, as a full scan similar to that of syncthing has to take place. This would also require a way to identify that syncing is occurring for the first time or is repetitive.

Akram9 commented 4 years ago

This has been resolved with version 0.2.