ArchiveOpenMode Enum
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.8944)
Specifies the opening mode of the archive.
Syntax
public enum ArchiveOpenMode
Fields
Name | Description |
---|---|
Create | Creates a new archive file. If the file already exists it is truncated to zero length. This requires ReadWrite. |
CreateNew | Creates a new archive file. If the file already exists an exception is thrown. This requires ReadWrite. |
Open | Opens an existing archive file. If the file doesn't exists an exception is thrown. Empty file is treated as an empty archive. |
OpenOrCreate | Opens an existing archive file; otherwise, creates a new archive file. Empty file is treated as an empty archive. |
Truncate | Opens an existing archive file and truncate it. If the file doesn't exists an exception is thrown. This requires ReadWrite. |