Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseFile ¶
CloseFile will close the provided file swallowing any error produced. This function is intended to be called with defer and is primarily intended to remove IDE warnings caused by calling defer file.Close()
func CopyDir ¶
CopyDir copies a directory preserving permissions. This function will return an error if it encounters a symlink.
func CopyFile ¶
CopyFile copies the contents of the source file (src) to the destination file (dst). The file will be created if it doesn't exit and will be overwritten if it already exists. The number of bytes wirten is returned.
func DirEmpty ¶
DirEmpty checks if the give directory path is empty of files and other directories. This function will return an error if the directory does not exists or is a file
func FileExists ¶
FileExists checks if the given path exists and is not a directory.
Types ¶
This section is empty.