Discover Packages
github.com/AgentZombie/agerotate
fileobject
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Oct 23, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
fileobject implements rotation for filesystem objects using os.Stat and os.Remove.
File captures a file path and it's mtime, providing methods for the Object interface. The mtime is cached to avoid hammering the filesystem during sorting.
Age returns the age of the object as a time.Duration.
Delete attempts to remove the file object. No error is returned if it already doesn't exist.
ID returns the path for the file object.
Files wraps a string (assumed to be a path glob) to provide Objects operations on it.
ID returns the path glob for the object.
List returns the File items matching the glob.
Source Files
¶
Directories
¶
config parses a config file for rotation of File objects.
config parses a config file for rotation of File objects.
Click to show internal directories.
Click to hide internal directories.