vfile

package
v0.0.0-...-0b57644 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeCompress

func DeCompress(zipFile, dstDir string) error

解压

func MD5

func MD5(filepath string) (string, error)

MD5 计算文件的MD5码

func MkDir

func MkDir(path string) error

func PathExists

func PathExists(path string) (bool, error)

func RmFile

func RmFile(path string) error

func RmFilesUnderDir

func RmFilesUnderDir(dir string) error

func UZipBytes

func UZipBytes(data []byte) []byte

zip解压

func WriteBytesSafe

func WriteBytesSafe(filePath string, b []byte) (int, error)

func WriteString

func WriteString(filePath string, s string) (int, error)

func Zip

func Zip(fileHandlers []*os.File, dest string, mode int) error

srcFile could be a single file or a directory

func ZipBytes

func ZipBytes(data []byte) []byte

zip压缩

Types

This section is empty.

Jump to

Keyboard shortcuts

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