C1.C1Zip Namespace > C1ZipEntryCollection Class > Add Method : Add(String,Int32) Method |
'Declaration
Public Overloads Sub Add( _ ByVal fileName As System.String, _ ByVal pathLevels As System.Integer _ )
public void Add( System.string fileName, System.int pathLevels )
By default, path names are not stored in the zip file. For example, adding the file "c:\temp\samples\readme.txt" to the zip file will create an entry called "readme.txt".
The pathLevels parameter allows you to store one or more levels of the path in the entry name. For example, adding the file "c:\temp\samples\readme.txt" to the zip file with pathLevels=1 will create an entry called "samples\readme.txt".
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2