Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sys ¶
type Sys interface { // Returns a generator of snapshots metadata. Snaps(path string) Snapshots // DelSnaps deletes outdated snapshots. DelSnaps([]Snapshot) // ModDate returns the date-time when a file was modified. ModDate(path string) (string, error) // DirExists returns true if a directory exists, and it is a directory. DirExists(path string) bool // FileExists returns true if path exists and points to a regular file. FileExists(path string) bool // MakeDir creates a directory unless it exists already. MakeDir(path string) error // DelDir deletes a directory. DelDir(path string) error // ClearDir output is an empty directory for the path. If a directory exists // it will clean it from files, if it does not exist, it will create it. ClearDir(path string) error }
Click to show internal directories.
Click to hide internal directories.