walker

package
v0.0.0-...-066ce53 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(file string) (bool, error)

Verifies the file has not been tampered The check is done using the information inside of the RPM database. Returns false if the file is not part of a RPM package.

Types

type Walker

type Walker struct {
	Root        string
	Extension   string // only list files with this extension
	Files       []string
	VerifyFiles bool
}

List the files inside of a directory. Note well: doesn't walk recursively It's possible to list only the files matching a given extension, remember to add the "." (eg: ".mp3")

func NewWalker

func NewWalker(path, extension string) *Walker

func (*Walker) Scan

func (w *Walker) Scan(path string, f os.FileInfo, err error) error

Jump to

Keyboard shortcuts

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