UpdateSelectedFiles Method (selectionCriteria, directoryOnDisk, directoryPathInArchive, recurseDirectories)

DotNetZip

Ionic Zip Library v1.9.1.6 UpdateSelectedFiles Method (selectionCriteria, directoryOnDisk, directoryPathInArchive, recurseDirectories)
ReferenceIonic.ZipZipFileUpdateSelectedFiles(String, String, String, Boolean)
Updates the ZipFile with a selection of files from the disk that conform to the specified criteria.
Declaration Syntax
C# Visual Basic Visual C++
public void UpdateSelectedFiles(
	string selectionCriteria,
	string directoryOnDisk,
	string directoryPathInArchive,
	bool recurseDirectories
)
Public Sub UpdateSelectedFiles ( _
	selectionCriteria As String, _
	directoryOnDisk As String, _
	directoryPathInArchive As String, _
	recurseDirectories As Boolean _
)
public:
void UpdateSelectedFiles(
	String^ selectionCriteria, 
	String^ directoryOnDisk, 
	String^ directoryPathInArchive, 
	bool recurseDirectories
)
Parameters
selectionCriteria (String)
The criteria for selection of files to add to the ZipFile.
directoryOnDisk (String)
The path to the directory in the filesystem from which to select files.
directoryPathInArchive (String)
Specifies a directory path to use to in place of the directoryOnDisk. This path may, or may not, correspond to a real directory in the current filesystem. If the files within the zip are later extracted, this is the path used for the extracted file. Passing null (nothing in VB) will use the path on the file name, if any; in other words it would use directoryOnDisk, plus any subdirectory. Passing the empty string ("") will insert the item at the root path within the archive.
recurseDirectories (Boolean)
If true, the method also scans subdirectories for files matching the criteria.
Remarks
This method selects files from the specified disk directory that match the specified selection criteria, and Updates the ZipFile with those files, using the specified directory path in the archive. If recurseDirectories is true, files are also selected from subdirectories, and the directory structure in the filesystem is reproduced in the zip archive, rooted at the directory specified by directoryOnDisk. For details on the syntax for the selectionCriteria parameter, see AddSelectedFiles(String).

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)