Documentation ¶
Index ¶
- func CopyDir(src, dest string) error
- func CopyFile(src, dest string, permissions int) error
- func Exists(path string) bool
- func IsDirectory(path string) bool
- func IsFile(path string) bool
- func LinkFile(src, dest string) error
- func MD5Sum(content []byte) string
- func ReadFile(path string) []byte
- func RemoveFile(path string) error
- func WriteFile(content []byte, dest string, permissions int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir recursively copies the content of a source dir to the specified destination. nolint: wrapcheck
func CopyFile ¶
CopyFile copies the content of the source file to the specified destination. nolint: wrapcheck,gosec
func IsDirectory ¶
IsDirectory returns true if the specified path is a directory.
func RemoveFile ¶
RemoveFile deletes a file and all its children. nolint: wrapcheck
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.