SevenZipArchive.SaveSplit
Contents
[
Hide
]SevenZipArchive.SaveSplit method
Saves multi-volume archive to destination directory provided.
public void SaveSplit(string destinationDirectory, SplitSevenZipArchiveSaveOptions options)
Parameter | Type | Description |
---|---|---|
destinationDirectory | String | The path to the directory where archive segments to be created. |
options | SplitSevenZipArchiveSaveOptions | Options for archive saving, including file name. |
Exceptions
exception | condition |
---|---|
InvalidOperationException | This archive was opened from existing source. |
ArgumentNullException | destinationDirectory is null. |
SecurityException | The caller does not have the required permission to access the directory. |
ArgumentException | destinationDirectory contains invalid characters such as “, >, <, or |. |
PathTooLongException | The specified path exceeds the system-defined maximum length. |
Remarks
This method compose several (n
) files filename.7z.001, filename.7z.002, …, filename.7z.(n).
Can not make existing archive multi-volume.
Examples
using (SevenZipArchive archive = new SevenZipArchive())
{
archive.CreateEntry("entry.bin", "data.bin");
archive.SaveSplit(@"C:\Folder", new SplitSevenZipArchiveSaveOptions("volume", 65536));
}
See Also
- class SplitSevenZipArchiveSaveOptions
- class SevenZipArchive
- namespace Aspose.Zip.SevenZip
- assembly Aspose.Zip