holepunchto / hyperdrive

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

feat: .clear a file from local cache #291

Closed okdistribute closed 4 years ago

okdistribute commented 4 years ago

Fixes https://github.com/hypercore-protocol/hyperdrive/issues/228#issuecomment-668678754

This calls clear under the hood for the given file, using the same walking tree as the hyperdrive.download function.

If this is desired, I will also write a companion section for the README.

okdistribute commented 4 years ago

closing in favor of https://github.com/hypercore-protocol/hyperdrive/pull/292, which is on the hypercore-protocol/hyperdrive rather than my fork!