files

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 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

FileExist 判断文件是否存在

func FileMove

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

func GetFileModTime

func GetFileModTime(path string) int64

获取文件修改时间 返回unix时间戳

func PathExists

func PathExists(path string) (bool, error)

func ReadFile2String added in v0.6.3

func ReadFile2String(filePath string) string

读取文件

func ZipDir

func ZipDir(srcDir string, destZip string) error

srcFile could be a single file or a directory

func ZipFiles

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

@author: [piexlmax](https://github.com/piexlmax) @function: ZipFiles @description: 压缩文件 @param: filename string, files []string, oldForm, newForm string @return: error

Types

This section is empty.

Jump to

Keyboard shortcuts

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