Documentation ¶
Index ¶
- func AppendOnlyFile(filename string, data []byte) error
- func FileChecksum(path string) (string, error)
- func PathExists(path string) (exists bool)
- func Touch(path string, atime, mtime time.Time) error
- func WriteFile(filename string, data []byte, perm os.FileMode) error
- func WriteNewFile(filename string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendOnlyFile ¶ added in v0.11.0
AppendOnlyFile appends to an existing file. Fails if the file does not exist.
func FileChecksum ¶ added in v0.6.0
FileChecksum reads a file and return the Adler32 checksum of its data as a string
func PathExists ¶
func Touch ¶ added in v0.6.0
Touch updates the atime and mtime of a file, after creating it if it doesn't exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.