filex

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(name string) bool

func Exists

func Exists(name string) bool

func ListDir

func ListDir(dirPth string) (files []string, err error)

func ListFiles

func ListFiles(dirPth string, suffix string) (files []string, err error)

获取指定目录下的所有文件,不进入下一级目录搜索,可以匹配后缀过滤。

func ListSubPath

func ListSubPath(osDirname string) ([]string, error)

func Md5CheckSum

func Md5CheckSum(filename string) (string, error)

func SHA256

func SHA256(path string) (string, error)

SHA256 sum of the given file

func WriteToFile

func WriteToFile(c []byte, filename 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