deletion

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(args Args) (*deleter, error)

Types

type Args

type Args struct {
	// Directory names the starting directory which the deleter will recursively inspect for old files.
	Directory string
	// MaxAgeInHours sets how old at least a file or directory must be before it will be selected for deletion.
	MaxAgeInHours int
}

Args transports CLI parameters to the business package.

type Results

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

Results keeps statistics about the deletion process.

func (*Results) PrintStats

func (r *Results) PrintStats()

PrintStats prints deletion statistics as one-liner.

Jump to

Keyboard shortcuts

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