RangerMauve / hypercore-fetch

Implementation of Fetch that uses the Hyper SDK for loading p2p content
MIT License
36 stars 12 forks source link

Expose MOUNT and UNMOUT methods #6

Closed RangerMauve closed 1 year ago

RangerMauve commented 3 years ago

There should be a way to mount hyperdrives onto your hyperdrive.

I propose something like

MOUNT /path/to/dir {body: 'hyper://tomount'} => 200 OK
UNMOUNT /path/to/dir => 200 OK

You can specify the path you want to mount at (the parent folders will get auto-created), and specify the hyper:// URL you want mounted in there.

You can remove a mount by using UNMOUNT and the path to the mount.

KyGost commented 3 years ago

Closed? Decided this will go elsewhere?

RangerMauve commented 3 years ago

Whoops!

RangerMauve commented 1 year ago

the latest version of hyperdrive does not have this anymore