A sharding strategy that takes the last few characters of a multibase encoded CID and uses them as the directory to store the block in. This prevents storing all blocks in a single directory which would overwhelm most filesystems.

Implements

Constructors

Properties

Methods

Constructors

Properties

base: MultibaseCodec<string>
extension: string
prefixLength: number

Methods

  • Parameters

    Returns {
        dir: string;
        file: string;
    }

    • dir: string
    • file: string