Versions in this module Expand all Collapse all v0 v0.25.0 Nov 18, 2024 v0.24.0 Nov 18, 2024 Changes in this version + func CollectFilesWithExt(root, ext string) ([]string, error) + func ComputeDirectoryHash(dir string) (string, error) + func ComputeFileChecksum(filePath string) (string, error) + func CopyFS(srcFS fs.FS, destRoot string, options ...CopyOption) error + func CopyFile(srcFS fs.FS, srcPath, destPath string, perm fs.FileMode) error + func GetBaseName(fileName string) string + func GetDirName(filePath string) string + func OpenTarFile(source string, fpath string) ([]byte, error) + func OpenZipFile(source string, fpath string) ([]byte, error) + func ReadJSON(fName string, v interface{}) error + func ReplaceWithCopy(src, dst string) error + func ReplaceWithMove(src, dst string) error + func SecureUntar(src string, dest string) error + func SecureUnzip(src string, dest string) error + func WriteJSON(fName string, v interface{}) error + type CopyConfig struct + Overwrite bool + PreservePerm bool + RootDir string + type CopyOption func(*CopyConfig) + func WithOverwrite(overwrite bool) CopyOption + func WithPreservePermissions(preserve bool) CopyOption + func WithRoot(root string) CopyOption