Documentation ¶
Index ¶
- func CopyAll(src string, dst string) (err error)
- func CopyDir(src string, dst string) (err error)
- func CopyDirFromEmbed(src embed.FS, srcPath string, dstPath string) (err error)
- func CopyFile(src, dst string) (err error)
- func CopyFileFromEmbed(src embed.FS, srcPath string, dstPath string) (err error)
- func IsAlphaNumeric(s string) bool
- func Unzip(zipPath string, p string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyAll ¶
CopyAll recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must exist. Symlinks are ignored and skipped.
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.
func CopyDirFromEmbed ¶ added in v0.7.0
func CopyFile ¶
CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.
func CopyFileFromEmbed ¶ added in v0.7.0
func IsAlphaNumeric ¶ added in v0.6.3
Types ¶
This section is empty.