Documentation ¶
Overview ¶
Package file_helpers provides file operation helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir copies src directory recursively to dest. Both of src and dest must be a path name. It returns error if dest already exist.
func CopyFile ¶
CopyFile copies file contents of src to dest. Both of stc and dest must be a path name.
func ExtractTgz ¶
ExtractTgz extracts src archive to the dest directory. Both src and dest must be a path name.
func RemoveFile ¶
RemoveFile removes the file. If the file does not exist, it do nothing and return nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.