Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OS ¶
type OS struct {
// contains filtered or unexported fields
}
OS provides file operations on the real filesystem.
func NewDefault ¶
func NewDefault() *OS
NewDefault creates a new file operation helper with a default hash function.
func (*OS) Copy ¶
Copy copies a file from src to dst. It will overwrite the destination file in any case.
func (*OS) CopyOnDiff ¶
CopyOnDiff copies a file from src to dst. It will only modify the destination file if the contents are different. It returns true if the file was modified, or an error if any occurred.
Click to show internal directories.
Click to hide internal directories.