# ArchiveOperations

@ServiceScope(value = [Build::class, Project::class])
interface ArchiveOperations

Operations on archives such as ZIP or TAR files.

An instance of this type can be injected into a task, plugin or other object by annotating a public constructor or property getter method with `javax.inject.Inject`.

#### Since

6.6

## Functions

bzip2
Link copied to clipboard
abstract fun bzip2(path: Any): ReadableResource
Creates resource that points to a bzip2 compressed file at the given path.
gzip
Link copied to clipboard
abstract fun gzip(path: Any): ReadableResource
Creates resource that points to a gzip compressed file at the given path.
tarTree
Link copied to clipboard
abstract fun tarTree(tarPath: Any): FileTree
Creates a read-only `FileTree` which contains the contents of the given TAR file, as defined by tarTree.
zipTree
Link copied to clipboard
abstract fun zipTree(zipPath: Any): FileTree
Creates a read-only `FileTree` which contains the contents of the given ZIP file, as defined by zipTree.