Documentation ¶
Index ¶
- Constants
- 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
const ErrNoDirEntryFound = gas.Error("file not found in directory")
Variables ¶
This section is empty.
Functions ¶
func CopyDirectoryPreservingTimestamp ¶ added in v4.10.0
CopyDirectoryPreservingTimestamp copies the source directory to the destination, preserving the modification and access times.
func CopyFile ¶ added in v4.10.0
CopyFile copies the source file to the destination, preserving the modification and access times.
func CopyPreservingTimestamp ¶ added in v4.10.0
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 ¶ added in v4.10.2
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 ModTime ¶ added in v4.10.0
ModTime returns the ModTime for the given path, treating errors as time 0.
func RemoveFromDirWhenOlderThan ¶ added in v4.10.0
RemoveFromDirWhenOlderThan removes all children of the given directory if their modification time is before the time specified.
Types ¶
This section is empty.