Package fileutil contains utility functions for working with files and directories.
func CopyDirContents ¶
CopyDirContents recursively copies contents of src to dst.
CopyFile copies the file src to dst, creating missing directories, if needed.
Exists returns true if a file or directory does exist and false otherwise.
Files returns a slice of files in the directory dir recursively with extensions exts, or an error. If no file extensions are supplied, all files are returned.