js-ipfs-unixfs
    Preparing search index...

    Interface Exportable

    interface Exportable {
        cid: CID;
        name: string;
        path: string;
        size: bigint;
        type: "object" | "directory" | "identity" | "raw" | "file";
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    cid: CID

    The CID of the entry

    name: string

    The name the entry is stored under within the directory

    path: string

    The path of the entry within the containing directory structure

    size: bigint

    This is the reported size of the entry - it is taken from the Tsize of the PBLink and may not be the same as the actual file size

    type: "object" | "directory" | "identity" | "raw" | "file"

    A disambiguator to allow TypeScript to work out the type of the entry.

    if (entry.type === 'file') {
    // access UnixFSFile properties safely
    }

    if (entry.type === 'directory') {
    // access UnixFSDirectory properties safely
    }