filetil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathExist added in v0.1.2

func PathExist(path string) (bool, error)

判断文件路径是否存在

Types

type FileList

type FileList struct {
	IsDir   bool      // 是否是目录
	Path    string    // 文件路径
	Ext     string    // 文件扩展名
	Name    string    // 文件名
	Size    int64     // 文件大小
	ModTime time.Time // 文件修改时间戳
}

func ScanFiles

func ScanFiles(dir string) (files []FileList, err error)

遍历路径下的所有文件及文件夹

Jump to

Keyboard shortcuts

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