compressFile


Description:

public static Result<bool,Error> compressFile (Path src, Path dst)

Compresses a source file and writes it to destination.

Parameters:

src

source file path.

dst

destination file path.

Returns:

Result.ok(true) on success, or Result.error(ZlibError) on failure.