@salesforce/source-deploy-retrieve
    Preparing search index...

    Class ZipTreeContainer

    A TreeContainer that performs I/O without unzipping it to the disk first.

    Hierarchy (View Summary)

    Index
    • Searches for a metadata component file in a container directory.

      Parameters

      • fileType: "content" | "metadataXml"

        The type of component file

      • name: string

        The name of the file without a suffix

      • directory: string

        The directory to search in

      Returns string | undefined

      The first path that meets the criteria, or undefined if none were found

    • Whether or not a file path is a directory in the container.

      Parameters

      • fsPath: string

        File path to test

      Returns boolean

      true if the path is to a directory

    • Reads the contents of a directory in the container.

      Parameters

      • fsPath: string

        Path to directory

      Returns string[]

      An array of file and directory names in the directory

    • Reads the contents of a file.

      Parameters

      • fsPath: string

      Returns Promise<Buffer<ArrayBufferLike>>

      A buffer of the file contents

    • Creates a readable stream of a file's contents.

      Parameters

      • fsPath: string

        File path to create a readable stream from

      Returns Readable

      A readable stream