js-ipfs-unixfs
    Preparing search index...

    Interface Exportable

    interface Exportable {
        cid: CID;
        name: string;
        path: string;
        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

    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
    }