fileutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChopPath added in v1.0.0

func ChopPath(original string) string

return the source filename after the last slash

func ComputeMd5 added in v1.0.0

func ComputeMd5(filePath string) string

func CountFileLine added in v1.0.0

func CountFileLine(filename string) (count int64)

func FileRename added in v1.0.0

func FileRename(filename, dstname string)

func GetFilePath added in v1.0.0

func GetFilePath(filepath string) (string, string)

func GetFileSize added in v1.0.0

func GetFileSize(path string) (fileSize int64)

func MTime added in v1.0.0

func MTime(name string) (mtime time.Time)

func Substr added in v1.0.0

func Substr(s string, pos, length int) string

func WalkDir added in v1.0.0

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

func WalkDirPath added in v1.0.0

func WalkDirPath(dirPth string) (paths []string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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