archive

package
v0.0.0-...-64200e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Overview

Copyright (c) arkade author(s) 2022. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Untar

func Untar(r io.Reader, dir string, gzip bool, quiet bool) error

Untar reads the (gzip-compressed) tar file from r and writes it into dir. Copyright 2017 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

AE: Edited on 2019-10-11 to remove support for nested folders when un-taring so that all files are placed in the same target directory

func UntarNested

func UntarNested(r io.Reader, dir string, gzipped, quiet bool) error

UntarNested reads the gzip-compressed tar file from r and writes it into dir. Copyright 2017 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

func Unzip

func Unzip(reader io.ReaderAt, size int64, dir string, quiet bool) error

Unzip reads the compressed zip file from reader and writes it into dir. Unzip works similar to Untar where support for nested folders is removed so that all files are placed in the same target directory

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL