Struct zip::write::FileOptions [] [src]

pub struct FileOptions { /* fields omitted */ }

Metadata for a file to be written

Methods

impl FileOptions
[src]

Construct a new FileOptions object

Set the compression method for the new file

The default is CompressionMethod::Deflated

Set the last modified time

The default is the current timestamp

Set the permissions for the new file.

The format is represented with unix-style permissions. The default is 0o644, which represents rw-r--r-- for files, and 0o755, which represents rwxr-xr-x for directories