Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandUser ¶
ExpandUser expands the ~ in a path to the users home directory TODO: find a lib, or move to a lib TODO: os.user can't be used with cross compiling
func LastModified ¶
func LastModified(search *LastModifiedSearch) (time.Time, error)
LastModified returns the latest modified time for all the files and directories. The files in each directory are checked for their last modified time. TODO: use go routines to speed this up nolint: gocyclo
Types ¶
type LastModifiedSearch ¶ added in v0.14.0
type LastModifiedSearch struct { // Root must be set to the absolute path of the directory to traverse. Any // relative paths in Paths and Excludes will be considered relative to this // root directory. Root string Excludes []string Paths []string }
LastModifiedSearch provides the means by which to specify your search parameters when finding the last modified file.
Click to show internal directories.
Click to hide internal directories.