files

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPrefix

func AppendPrefix(prefix string, keys []string) []string

func IsConfigChanged

func IsConfigChanged(src, dest string) (bool, error)

IsConfigChanged 报告src和dest配置文件是否相等. 当两个配置文件具有相同的文件内容和Unix权限时,它们是相等的. 所有者,组和方式必须匹配.在其他情况下返回false.

func IsDirectory

func IsDirectory(path string) (bool, error)

func IsFileExist

func IsFileExist(fpath string) bool

isFileExist 报告路径是否退出.

func RecursiveDirsLookup

func RecursiveDirsLookup(root string, pattern string) ([]string, error)

func RecursiveFilesLookup

func RecursiveFilesLookup(root string, pattern string) ([]string, error)

Types

type FileInfo

type FileInfo struct {
	Uid  uint32
	Gid  uint32
	Mode os.FileMode
	Md5  string
}

FileInfo 描述一个配置文,由fileStat返回.

func FileStat

func FileStat(name string) (fi FileInfo, err error)

filestat 返回描述命名文件的FileInfo.

Jump to

Keyboard shortcuts

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