fileinfo

package
v0.0.0-...-f322490 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	os.FileInfo
	Path string
}

func New

func New(path string) (FileInfo, error)

func ReadDir

func ReadDir(rootDir string, typ int) ([]FileInfo, error)

ReadDir 读取根目录下的所有信息

rootDir 根目录
typ	0: 文件和文件夹
	1: 仅文件
	2: 仅文件夹

Jump to

Keyboard shortcuts

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