fileutilities

package
v2.44.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid file destination")

Functions

func CopyFile added in v2.40.0

func CopyFile(dst, src string) error

Copy copies src to dst like the cp command.

func CreateDirs

func CreateDirs(p string) error

CreateDirs create directory. All non-existing nested paths will be created. The folder owner will also be changed to match the current user (on non-windows systems only)

func DownloadFile added in v2.40.0

func DownloadFile(u string, out io.WriteCloser) error

DownloadFile download a file from a public url

Types

This section is empty.

Jump to

Keyboard shortcuts

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