pub struct ZipCommand { /* private fields */ }
Expand description

Zip files using the system zip command.

Create a temporary directory, write temp files in that directory, and then calls the zip command to generate an epub file.

This method will fail if zip (or the alternate specified command) is not installed on the user system.

Note that these takes care of adding the mimetype (since it must not be deflated), it should not be added manually.

Implementations

Creates a new ZipCommand, using default setting to create a temporary directory.

Creates a new ZipCommand, specifying where to create a temporary directory.

Arguments
  • temp_path: the path where a temporary directory should be created.

Set zip command to use (default: “zip”)

Test that zip command works correctly (i.e program is installed)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.