Skip to main content

openLocalDrive

@totemsdk/pear


@totemsdk/pear / openLocalDrive

Function: openLocalDrive()

openLocalDrive(storagePath): Promise<BareHyperdriveAdapter>

Open a local Hyperdrive from a Corestore path (no network required).

Useful when the drive content is already replicated locally or when the caller manages replication separately.

Parameters

storagePath

string

Returns

Promise<BareHyperdriveAdapter>