package
0.0.0-20230313140341-b44964e63a92
Repository: https://github.com/mongoose-os/mos.git
Documentation: pkg.go.dev

# Functions

Archive compresses a file/directory to a writer If the path ends with a separator, then the contents of the folder at that path are at the root level of the archive, otherwise, the root of the archive contains the folder as its only item (with contents inside).
CopyDir recursively copies a directory tree, attempting to preserve permissions.
CopyFile copies the contents of the file named src to the file named by dst.
LinkOrCopyFile creates a copy of src at dst.
RemoveFromDir removes everything from the given dir, except items with blacklisted names.
WriteFileIfDiffers writes data to file but avoids overwriting a file with the same contents.
WriteFileIfDiffers writes s as YAML to file but avoids overwriting a file with the same contents.

# Type aliases

ProgressFunc is the type of the function called for each archive file.