files

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory

func CopyDirectory(from string, to string) (err error)

func CopyFile

func CopyFile(from string, to string) (err error)

func DownloadFile

func DownloadFile(url string, name string) (err error)

DownloadFile downloads a file to the disk.

func IsDirectory

func IsDirectory(name string) bool

IsDirectory checks if file exists and is a directory.

func IsFile

func IsFile(name string) bool

IsFile check if file exists and is a file.

func Move

func Move(from string, to string) (err error)

func ReadDirectory

func ReadDirectory(from string) (names []string, err error)

func ReadFileInChunks

func ReadFileInChunks(name string, max int, call func([]byte) error) (err error)

ReadFileInChunks reads a file in chunks of a set maximum size.

func UnzipFile

func UnzipFile(from string, to string) (err error)

UnzipFile unzips a file to a directory on the disk.

func ZipDirectory

func ZipDirectory(from string, to string) (err error)

ZipDirectory zips a directory to the disk.

func ZipFile

func ZipFile(from string, to string) (err error)

ZipFile zips a file to the disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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