parent
e4503a312a
commit
0a09253896
1 changed files with 1 additions and 1 deletions
|
@ -699,7 +699,7 @@ impl<W: Write + io::Seek> ZipWriter<W> {
|
||||||
|
|
||||||
/// Add a directory entry.
|
/// Add a directory entry.
|
||||||
///
|
///
|
||||||
/// You can't write data to the file afterwards.
|
/// As directories have no content, you must not call [`ZipWriter::write`] before adding a new file.
|
||||||
pub fn add_directory<S>(&mut self, name: S, mut options: FileOptions) -> ZipResult<()>
|
pub fn add_directory<S>(&mut self, name: S, mut options: FileOptions) -> ZipResult<()>
|
||||||
where
|
where
|
||||||
S: Into<String>,
|
S: Into<String>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue