files

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDir

func CreateDir(dirs ...string) (err error)

func CurrentDir

func CurrentDir() (string, error)

func DeLFile added in v0.6.2

func DeLFile(filePath string) error

func FileExist added in v0.6.2

func FileExist(path string) bool

Check file path exist.

func FileModTimestamp added in v0.8.1

func FileModTimestamp(path string) int64

Get file modify timestamp

func FileMove

func FileMove(source string, target string) (err error)

Move file from source to target.

func PathExists

func PathExists(path string) (bool, error)

func ReadFile2String added in v0.6.3

func ReadFile2String(filePath string) string

Read file content to string

func ZipDir

func ZipDir(srcDir string, zipFilePath string) error

Zip a dir into a zip file.

func ZipFiles

func ZipFiles(files []string, zipFilePath string, oldForm, newForm string) error

Zip some files into a zip file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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