CompressFiles class

Utility class for cross-platform file compression operations.

Provides static methods for checking compression tool availability and performing file compression using platform-appropriate tools. Handles Windows, macOS, and Linux platforms with their respective native compression utilities.

Constructors

CompressFiles()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkTools() Future<bool>
Checks if the required compression tools are available on the current platform.
compress(String source, String destination) Future<int>
Compresses files from the source directory into a ZIP archive.