dirfiles

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

come from

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirFiles

type DirFiles struct{}

func (DirFiles) AppFilesInDir

func (appfiles DirFiles) AppFilesInDir(dir string) ([]FileFields, error)

func (DirFiles) CopyFiles

func (appfiles DirFiles) CopyFiles(appFiles []FileFields, fromDir, toDir string) error

func (DirFiles) CountFiles

func (appfiles DirFiles) CountFiles(directory string) int64

func (DirFiles) WalkAppFiles

func (appfiles DirFiles) WalkAppFiles(dir string, onEachFile func(string, string) error) error

type FileFields

type FileFields struct {
	Path string
	Sha1 string
	Size int64
	Mode string
}

type Files

type Files interface {
	FilesInDir(dir string) (appFiles []FileFields, err error)
	CopyFiles(appFiles []FileFields, fromDir, toDir string) (err error)
	CountFiles(directory string) int64
	WalkAppFiles(dir string, onEachFile func(string, string) error) (err error)
}

type Glob

type Glob struct {
	// contains filtered or unexported fields
}

func MustCompileGlob

func MustCompileGlob(p string) Glob

func (Glob) Match

func (g Glob) Match(p string) bool

func (Glob) String

func (g Glob) String() string

type IgnoreFiles

type IgnoreFiles interface {
	FileShouldBeIgnored(path string) bool
}

func NewIgnoreFiles

func NewIgnoreFiles(text string) IgnoreFiles

Jump to

Keyboard shortcuts

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