Plants vs. Zombies: Replanted - v1.0.3
    Preparing search index...

    Class Archive

    wrapper around an format-specific archive handler

    Archive

    Index

    Constructors

    Accessors

    • get addFile(): (filePath: string, sourcePath: string) => Bluebird<void>

      add a single file to the archive

      Returns (filePath: string, sourcePath: string) => Bluebird<void>

    • get create(): (sourcePath: string) => Bluebird<void>

      create this archive from the files in sourcePath

      Returns (sourcePath: string) => Bluebird<void>

    • get extractAll(): (outputPath: string) => Bluebird<void>

      extract the entire archive

      Returns (outputPath: string) => Bluebird<void>

    • get extractFile(): (filePath: string, outputPath: string) => Bluebird<void>

      extract a single file

      Returns (filePath: string, outputPath: string) => Bluebird<void>

    • get readDir(): (archivePath: string) => Bluebird<string[]>

      list files at the specified path

      Returns (archivePath: string) => Bluebird<string[]>

    • get readFile(): (filePath: string) => ReadableStream

      read a file at the specified path via a stream

      Returns (filePath: string) => ReadableStream

    • get write(): () => Bluebird<void>

      Returns () => Bluebird<void>