file

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateMode = 0o666
)

Variables

View Source
var ErrSameArgs = errors.New("name and dest cannot be the same")

Functions

func Add

func Add(tw *tar.Writer, src string) error

Add a file to the tar writer.

func Copy

func Copy(name, dest string) (written int64, err error)

Copy copies a file to the destination.

func Dir

func Dir(name string) error

Dir lists the content of a directory.

func Move

func Move(name, dest string) (written int64, err error)

Move copies a file to the destination and then deletes the source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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