Theia API Documentation v1.77.0
    Preparing search index...

    Extracts zip, tar and gzipped tar archives.

    Entry paths and links are not trusted: an entry whose path is absolute or leaves the archive root fails the extraction, and links and other special entries are skipped rather than created, so that nothing can be written or exposed outside of the destination. The size of the extracted content is not limited.

    Implements

    Index
    logger?: ILogger

    Not available to instances created without dependency injection, which report skipped entries on the console.

    • Creates a directory below the root one segment at a time and refuses to descend into an existing entry that is not a directory, so that nothing is created or written through a link that already existed in the destination.

      Parameters

      • root: string
      • directory: string
      • verifiedDirectories: Set<string>

      Returns Promise<void>

    • Normalizes the name of an entry to a relative path with / as separator.

      Parameters

      • name: string

      Returns string | undefined

      undefined for the archive root.

      if the name is absolute or leaves the archive root.