pathrecurseinfo

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instruction

type Instruction struct {
	Root               string
	ExcludingRootNames []string //  root file or dir names contains in this will be ignored
	ExcludingPaths     []string //  path contains in this will be ignored
	IsRecursive,
	IsRelativePath,
	IsIncludeAll,
	IsIncludeDirsOnly,
	IsIncludeFilesOnly,
	IsNormalize,
	IsExpandEnvironmentVar,
	IsExcludeRoot bool // Don't include root path
	// contains filtered or unexported fields
}

func (*Instruction) ExcludingNamesHashset

func (it *Instruction) ExcludingNamesHashset() *corestr.Hashset

func (*Instruction) ExcludingPathsHashset added in v0.3.6

func (it *Instruction) ExcludingPathsHashset() *corestr.Hashset

func (*Instruction) HasExcludingPaths added in v0.3.6

func (it *Instruction) HasExcludingPaths() bool

func (*Instruction) HasExcludingRootNames added in v0.3.6

func (it *Instruction) HasExcludingRootNames() bool

func (*Instruction) Result

func (it *Instruction) Result() *Result

func (*Instruction) SliceResult added in v0.3.6

func (it *Instruction) SliceResult() *corestr.SimpleSlice

func (*Instruction) StringsResults added in v0.3.8

func (it *Instruction) StringsResults() *errstr.Results

func (*Instruction) StringsResultsWithoutUnc added in v0.4.3

func (it *Instruction) StringsResultsWithoutUnc() *errstr.Results

type PathsResult

type PathsResult struct {
	ExpandingPaths *corestr.SimpleSlice
	IsExist,
	IsFile,
	IsDir bool
}

func EmptyPathsResult added in v0.3.8

func EmptyPathsResult() *PathsResult

func (*PathsResult) Clone

func (it *PathsResult) Clone(isDeepClone bool) *PathsResult

func (*PathsResult) ConcatNew

func (it *PathsResult) ConcatNew(
	isDeepClone,
	isClone bool,
	other *PathsResult,
) *PathsResult

func (*PathsResult) Dispose added in v0.5.2

func (it *PathsResult) Dispose()

func (*PathsResult) IsDistinctEqualItems added in v0.3.6

func (it *PathsResult) IsDistinctEqualItems(another *PathsResult) bool

func (*PathsResult) IsEqual added in v0.3.6

func (it *PathsResult) IsEqual(another *PathsResult) bool

func (*PathsResult) IsEqualOnlyItems added in v0.3.6

func (it *PathsResult) IsEqualOnlyItems(another *PathsResult) bool

func (*PathsResult) JoinWithRoot

func (it *PathsResult) JoinWithRoot(
	isFixAll,
	isNormalize bool,
	root string,
) *corestr.SimpleSlice

type Result

type Result struct {
	Root            string
	PathStat        *chmodhelper.PathExistStat
	IsInvalidResult bool
	IsRelative      bool
	PathsResult     *PathsResult
	ErrorWrapper    *errorwrapper.Wrapper
}

func GetInstructionResult

func GetInstructionResult(instruction *Instruction) *Result

GetInstructionResult returns result

func InvalidResult

func InvalidResult(
	root string,
	errorWrapper *errorwrapper.Wrapper,
	stat *chmodhelper.PathExistStat,
) *Result

func (*Result) Clone added in v0.3.8

func (it *Result) Clone(isDeepClone bool) *Result

func (*Result) Dispose added in v0.5.2

func (it *Result) Dispose()

func (*Result) EmptyErrorResults added in v0.5.2

func (it *Result) EmptyErrorResults() *errstr.Results

func (*Result) FilterFullPaths added in v0.5.2

func (it *Result) FilterFullPaths(
	isContinueOnError bool,
	errCollection *errwrappers.Collection,
	filter pathfuncs.Filter,
) *corestr.SimpleSlice

func (*Result) FilterResults added in v0.3.8

func (it *Result) FilterResults(
	isContinueOnError bool,
	errCollection *errwrappers.Collection,
	filter pathfuncs.Filter,
) *Result

func (*Result) HasAnyItem added in v0.3.8

func (it *Result) HasAnyItem() bool

func (*Result) HasIssuesOrEmpty added in v0.3.8

func (it *Result) HasIssuesOrEmpty() bool

func (*Result) HasSafeItems added in v0.3.8

func (it *Result) HasSafeItems() bool

func (*Result) IsEmpty added in v0.3.8

func (it *Result) IsEmpty() bool

func (*Result) IsEmptyPathStat

func (it *Result) IsEmptyPathStat() bool

func (*Result) Length

func (it *Result) Length() int

func (*Result) Paths

func (it *Result) Paths() []string

func (*Result) PathsString

func (it *Result) PathsString() string

func (*Result) SimpleFilterFullPathsAsync added in v0.5.2

func (it *Result) SimpleFilterFullPathsAsync(
	filter pathfuncs.SimpleFilter,
) *errstr.Results

func (*Result) Strings added in v0.3.8

func (it *Result) Strings() []string

func (*Result) StringsResults added in v0.3.8

func (it *Result) StringsResults() *errstr.Results

Jump to

Keyboard shortcuts

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