Summary
Extracts the specified tar archive.
- Namespace
- Cake
.Common .IO - Containing Type
- TarAliases
Syntax
[CakeMethodAlias]
public static void Untar(this ICakeContext context, FilePath archiveFile, DirectoryPath outputPath, UntarSettings settings)
Examples
Untar("publish.tar.gz", "./publish", new UntarSettings {
SkipUnchangedFiles = true,
OverwriteReadOnlyFiles = false
});
Attributes
| Type | Description |
|---|---|
| Cake |
An attribute used to mark script method aliases. |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| archiveFile | FilePath | The archive file to extract. |
| outputPath | DirectoryPath | The output path to extract into. |
| settings | UntarSettings | The settings. |
Return Value
| Type | Description |
|---|---|
| void |
