internetarchive / dweb-mirror

Offline Internet Archive project
https://www-dweb-mirror.dev.archive.org/
GNU Affero General Public License v3.0
273 stars 31 forks source link

Add directory or transport status should be reflected immediately #265

Closed mitra42 closed 4 years ago

mitra42 commented 5 years ago

If change directories (e.g. plug in new disk), or connection to server goes down.

Fix should allow for a callback or Event handler (better) on dweb-transports.(whatever checks for /info) .

mitra42 commented 4 years ago

Currently ... dweb-mirror.CrawlManager.constructor(); DM.mirrorHttp.sendInfo() ->
DTS.p_statuses() -> DTS.statuses() -> transportInstance.status

Instead ...

mitra42 commented 4 years ago

Bugs ...

mitra42 commented 4 years ago

I think this is all working now