Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoPreserveRoot = 1 << iota Force Recursive RemoveEmpty IgnoreMissing OneFileSystem Verbose PromptAlways )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromptOption ¶
type PromptOption uint8
const ( // WriteProtected signals that the object to be removed or descended upon // has write protection. WriteProtected PromptOption = 1 << iota // Directory indicates the action is on a directory. Directory // Descend indicates the action is to descend into an object. Descend // Remove indicates the action is to remove an object. Remove )
type RemoveOption ¶
type RemoveOption uint8
type Remover ¶
type Remover struct { // Prompt, if non-nil, will be called depending on the Remover's configured // options. If it returns true, the action continues, otherwise it stops. Prompt func(name string, opts PromptOption) bool Log chan string // contains filtered or unexported fields }
func NewRemover ¶
func NewRemover(opts RemoveOption) *Remover
Click to show internal directories.
Click to hide internal directories.