deletion

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: AGPL-3.0 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