Documentation ¶
Overview ¶
Package result provides the result type for ignore matching. This is a separate package in order to break import cycles.
Index ¶
Constants ¶
const ( NotIgnored R = 0 // `Ignored` is defined in platform specific files IgnoredDeletable = Ignored | deletableBit IgnoreAndSkip = Ignored | canSkipDirBit )
const Ignored = ignoreBit
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type R ¶
type R uint8
func (R) CanSkipDir ¶ added in v1.27.4
CanSkipDir returns true if the result is ignored and the directory can be skipped (no need to recurse deeper). Note that ignore matches are textual and based on the name only -- this being true does not mean that the matched item is a directory, merely that *if* it is a directory, it can be skipped.
func (R) IsCaseFolded ¶
IsCaseFolded returns true if the result was a case-insensitive match.
func (R) IsDeletable ¶
IsDeletable returns true if the result is ignored and deletable.
func (R) ToggleIgnored ¶
ToggleIgnored returns a copy of the result with the ignored bit toggled.
func (R) WithDeletable ¶
WithDeletable returns a copy of the result with the deletable bit set.
func (R) WithFoldCase ¶
WithFoldCase returns a copy of the result with the fold case bit set.
func (R) WithSkipDir ¶ added in v1.27.4
WithSkipDir returns a copy of the result with the skip dir bit set.