filehelper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPathIsPointToDir = errors.New("path is point to directory")
View Source
var ErrPathIsPointToFile = errors.New("path is point to file")

Functions

func CreateDir

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

func DelFile

func DelFile(filePath string) error

func DirExist

func DirExist(path string) (bool, error)

func FileExist

func FileExist(path string) (bool, error)

func MoveFile

func MoveFile(src, dst string) error

MoveFile 将文件从 src 移动到 dst

func Unzip

func Unzip(zipPath string, destPath string) ([]string, error)

func ZipFiles

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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