Documentation
¶
Overview ¶
Package reaper provides the business logic for safely identifying stale files for deletion.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
os.FileInfo
// Path is the file's full-path relative to the search root.
Path string
}
Entry models a file eligible for deletion.
type Option ¶
type Option func(*Reaper)
Option defines a runtime parameter for the reaper.
func ExpungeAfter ¶
ExpungeAfter identifies files for deletion whose access time surpasses d.
func ExpungeIrregular ¶
func ExpungeIrregular() Option
ExpungeIrregular allows irregular files to be deleted --- i.e., non-regular files and directories.
type Reaper ¶
type Reaper struct {
// contains filtered or unexported fields
}
Reaper scans the the filesystem for stale files that may be eligible for safe deletion.
func (*Reaper) Err ¶
Err reports whether the scanner incurred an error. It is only set after the Scan method returns false.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
reaper
command
Binary reaper cleans files that have not been accessed past a provided expiry.
|
Binary reaper cleans files that have not been accessed past a provided expiry. |
|
Package flag provides extra flag.Value implementations.
|
Package flag provides extra flag.Value implementations. |