package
1.36.1
Repository: https://github.com/flanksource/commons.git
Documentation: pkg.go.dev

# Functions

Copy a file from src to dst.
No description provided by the author
Exists returns true if the file exists.
GetBaseName returns the base part of the filename without the extension.
GzipFile takes the path to a file and returns a Gzip comppressed byte slice.
No description provided by the author
SafeRead reads a path and returns the text contents or nil.
TempFileName generates a temporary filename for.
Unarchive extracts the contents of an archive to the dest directory.
UnarchiveExecutables extracts all executable's to the dest directory, ignoring any path's specified by the archive.
No description provided by the author
Ungzip the source file to the target directory.
Untar extracts all files in tarball to the target directory.
UntarWithFilter extracts all files in tarball to the target directory, passing each file to filter if the filter returns "" then the file is ignored, otherwise the return string is used as the relative destination path.
No description provided by the author
Unzip the source file to the target directory.
Zip the source file/directory into the target destination.

# Type aliases

FileFilter is a function used for filtering files.