file

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package file writes the results of an asset scan or walk.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyPath = errors.New("path cannot be empty")
	ErrWriter    = errors.New("writer pointer cannot be nil")
)

Functions

func WalkName

func WalkName(basepath, path string) (string, error)

func Write added in v1.11.0

func Write(tw *tar.Writer, path, filename string) error

Write saves the result of a fileWalk into a TAR writer. Source: cloudfoundry/archiver https://github.com/cloudfoundry/archiver/blob/master/compressor/write_tar.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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