File

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: BSL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) (err error)

Copy copies a file from src to dst. If src and dst files exist, and are the same, then return success. Otherwise, copy the file contents from src to dst.

func GetCount added in v0.5.1

func GetCount(path string) (int, error)

GetCount returns the number of files on the path

func GetCountDirs added in v0.5.1

func GetCountDirs(path string) (int, error)

GetCountDirs returns the number of directories on the path

func GetCountFiles added in v0.5.1

func GetCountFiles(path string) (int, error)

GetCountFiles returns the number of files on the path

func GetSize added in v0.5.1

func GetSize(path string) (int64, error)

GetSize returns the size of the file or directory

func Move

func Move(source, destination string) (err error)

Move with preserving timestamps and attributes

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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