// ArchivePartial compresses all files in a file/directory matching a relative prefix 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).
//
// If progress is not nil, it is called for each file added to the archive.
ArchivePartial compresses all files in a file/directory matching a relative prefix 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).

If progress is not nil, it is called for each file added to the archive.
// ArchivePartial compresses all files in a file / directory matching a relative prefix 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 ) . // // If progress is not nil it is called for each file added to the archive .
func ArchivePartial(inFilePath string, writer io.Writer, basePrefix string) error {
	return archiveWithFilter(inFilePath, writer, func(relativePath string) bool {
		return strings.HasPrefix(relativePath, basePrefix)
	})
}
func ArchivePartial ( inFilePath string , writer io . Writer , basePrefix string ) error { return archiveWithFilter ( inFilePath , writer , func ( relativePath string ) bool { return strings . HasPrefix ( relativePath , basePrefix ) } ) }
ArchivePartial compresses all files in a file/directory matching a relative prefix to a writer
ArchivePartial compresses all files in a file / directory matching a relative prefix to a writer