Documentation ¶
Index ¶
- func CopyFile(src, dst string) error
- func CopyFolder(source string, dest string) error
- func CopyFolderContent(source string, dest string) error
- func CopyFolderContentLevels(source string, dest string, levelsDeeper int) error
- func CopyFolderLevels(source string, dest string, levels int) error
- func GetFilename(fullfilename string, withExt bool) string
- func IsDir(path string) bool
- func IsFile(path string) bool
- func IsFileContains(fpath string, test []byte) bool
- func MoveFile(source string, dest string) error
- func MoveFolder(source string, dest string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
CopyFile copies a file from src to dst. If src and dst files exist, and are the same, then return success. Otherise, attempt to create a hard link between the two files. If that fail, copy the file contents from src to dst.
func CopyFolder ¶
CopyFolder copies a folder's content to a (new one) another one
func CopyFolderContent ¶
CopyFolderContent copies a folder's content only
func CopyFolderContentLevels ¶
CopyFolderContentLevels copies a folder's content only
func CopyFolderLevels ¶
CopyFolderLevels copies a folder's content to a (new one) another one
func GetFilename ¶
GetFilename returns a filename
func IsFileContains ¶
func MoveFolder ¶
MoveFolder moves a folder's content only
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.