Documentation ¶
Overview ¶
Package file provides various helpers for working with files on an OS filesystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotDir = errors.New("not a directory")
ErrNotDir indicates a path was not a directory.
var ErrNotRegularFile = errors.New("not a regular file")
ErrNotRegularFile indicates a path was not a regular file. For example, this could mean it was a symlink.
Functions ¶
func CopyDirContents ¶
CopyDirContents copies all contents from the directory src to the directory dst. Only regular files and directories will be copied. If src or dst is not a directory, and error will be returned. If dst does not exists, it will be created.
func CopyFile ¶
CopyFile copies the regular file located at src to dst. Any intermediate directories in dst that do not exists will be created. If src is not a regular file an error will be returned.
Types ¶
This section is empty.