holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 134 forks source link

Added sync-metadata event #243

Closed RangerMauve closed 5 years ago

RangerMauve commented 5 years ago

This is useful for people to know when it's safe to use readdir and the such.

Currently people use a bunch of weird tricks to get it to work.

This will make the tricks a little bit less arcane and somewhat documented. :P

RangerMauve commented 5 years ago

Closing this for now. Downloading the full metadata is an antipattern.

Instead one should use archive.metadata.update({ifAvailable: true}, whatever)