Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFileMode ¶
CheckFileMode checks if path has it's mode bits set to expectedMode.
func EnsureFileMode ¶
EnsureFileMode ensures that path has mode. It returns true if the mode bits were updated, false otherwise.
func EqualFileMode ¶
EqualFileMode checks if f1 and f2 have the same mode bits set. If either f1 or f2 does not exist or failed to LStat, an error is returned.
func FileChecksum ¶
FileChecksum computes the a non-cryptographic hash (currently a Murmur3) suitable to compare files.
func FileUpdateNeeded ¶
FileUpdateNeeded checks if target needs to be updated to match ref. Target may not yet exist in which case true is returned without an error. If target exists, both files are compared using their checksum (see FileChecksum). FileUpdateNeeded returns an error if ref does not exist.
Types ¶
This section is empty.