public AddFile ( string fileName ) : |
||
fileName | string | /// The name of the file to add. It should refer to a file in the filesystem. /// The name of the file may be a relative path or a fully-qualified path. /// |
return |
This call collects metadata for the named file in the filesystem, including the file attributes and the timestamp, and inserts that metadata into the resulting ZipEntry. Only when the application calls Save() on the ZipFile
, does DotNetZip read the file from the filesystem and then write the content to the zip file archive.
This method will throw an exception if an entry with the same name already exists in the ZipFile
.
For ZipFile
properties including Encryption, ZipEntry
added.
public AddFile ( string fileName ) : |
||
fileName | string | /// The name of the file to add. It should refer to a file in the filesystem. /// The name of the file may be a relative path or a fully-qualified path. /// |
return |