C# | Visual Basic | Visual C++ |
public Zip64Option UseZip64WhenSaving { get; set; }
Public Property UseZip64WhenSaving As Zip64Option Get Set
public: property Zip64Option UseZip64WhenSaving { Zip64Option get (); void set (Zip64Option value); }
When creating a zip file, the default value for the property is Never. AsNecessary is safest, in the sense that you will not get an Exception if a pre-ZIP64 limit is exceeded.
You may set the property at any time before calling Save().
When reading a zip file via the Zipfile.Read() method, DotNetZip will properly read ZIP64-endowed zip archives, regardless of the value of this property. DotNetZip will always read ZIP64 archives. This property governs only whether DotNetZip will write them. Therefore, when updating archives, be careful about setting this property after reading an archive that may use ZIP64 extensions.
An interesting question is, if you have set this property to AsNecessary, and then successfully saved, does the resulting archive use ZIP64 extensions or not? To learn this, check the OutputUsedZip64 property, after calling Save().
Have you thought about donating?