Documentation
¶
Index ¶
- Constants
- Variables
- func CopyDirectoryPreservingTimestamp(source, dest string) error
- func CopyFile(source, dest string) (err error)
- func CopyPreservingTimestamp(source, dest string) error
- func DirEntryModTime(de os.DirEntry) time.Time
- func FindLatestCombinedOutput(dir, watchFile string) (string, error)
- func FindLatestDirectoryEntry(dir, suffix string) (string, error)
- func ModTime(path string) time.Time
- func RemoveFromDirWhenOlderThan(dir string, before time.Time) error
- func Touch(path string, t time.Time) error
Constants ¶
const DirPerms = 0755
Variables ¶
var ErrNoDirEntryFound noDirEntryFoundError
Functions ¶
func CopyDirectoryPreservingTimestamp ¶
CopyDirectoryPreservingTimestamp copies the source directory to the destination, preserving the modification and access times.
func CopyFile ¶
CopyFile copies the source file to the destination, preserving the modification and access times.
func CopyPreservingTimestamp ¶
CopyPreservingTimestamp copies the source to the dest, recursively, preserving the modification and access times.
func DirEntryModTime ¶
DirEntryModTime returns the ModTime of the given DirEntry, treating errors as time 0.
func FindLatestCombinedOutput ¶
FindLatestCombinedOutput finds the entry in dir that contains the newest watchFile.
func FindLatestDirectoryEntry ¶
FindLatestDirectoryEntry finds the latest entry in dir that has the given suffix and returns its path.
func RemoveFromDirWhenOlderThan ¶
RemoveFromDirWhenOlderThan removes all children of the given directory if their modification time is before the time specified.
Types ¶
This section is empty.