filecoin-pin
    Preparing search index...

    Variable createCarFromPath

    createCarFromPath: (
        path: string,
        options?: CreateCarOptions,
    ) => Promise<CreateCarResult>

    Type Declaration

      • (path: string, options?: CreateCarOptions): Promise<CreateCarResult>
      • Create a CAR file from a file or directory using UnixFS encoding

        Parameters

        • path: string

          Path to the file or directory to encode

        • options: CreateCarOptions = {}

          Optional logger, bare flag, and directory flag

        Returns Promise<CreateCarResult>

        Path to temporary CAR file, root CID, and entry count