FileSelector Class

DotNetZip

Ionic Zip Library v1.9.1.6 FileSelector Class
ReferenceIonicFileSelector
FileSelector encapsulates logic that selects files from a source - a zip file or the filesystem - based on a set of criteria. This class is used internally by the DotNetZip library, in particular for the AddSelectedFiles() methods. This class can also be used independently of the zip capability in DotNetZip.
Declaration Syntax
C# Visual Basic Visual C++
public class FileSelector
Public Class FileSelector
public ref class FileSelector
Members
All Members Constructors Methods Properties



Icon Member Description
FileSelector(String)
Constructor that allows the caller to specify file selection criteria.

FileSelector(String, Boolean)
Constructor that allows the caller to specify file selection criteria.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
SelectEntries(ZipFile)
Retrieve the ZipEntry items in the ZipFile that conform to the specified criteria.

SelectEntries(ZipFile, String)
Retrieve the ZipEntry items in the ZipFile that conform to the specified criteria.

SelectFiles(String)
Returns the names of the files in the specified directory that fit the selection criteria specified in the FileSelector.

SelectFiles(String, Boolean)
Returns the names of the files in the specified directory that fit the selection criteria specified in the FileSelector, optionally recursing through subdirectories.

SelectionCriteria
The string specifying which files to include when retrieving.

ToString()()()()
Returns a string representation of the FileSelector object.
(Overrides Object.ToString()()()().)
TraverseReparsePoints
Indicates whether searches will traverse NTFS reparse points, like Junctions.

Remarks

The FileSelector class is used internally by the ZipFile class for selecting files for inclusion into the ZipFile, when the AddSelectedFiles(String, String) method, or one of its overloads, is called. It's also used for the ExtractSelectedEntries(String) methods. Typically, an application that creates or manipulates Zip archives will not directly interact with the FileSelector class.

Some applications may wish to use the FileSelector class directly, to select files from disk volumes based on a set of criteria, without creating or querying Zip archives. The file selection criteria include: a pattern to match the filename; the last modified, created, or last accessed time of the file; the size of the file; and the attributes of the file.

Consult the documentation for SelectionCriteria for more information on specifying the selection criteria.

Inheritance Hierarchy
Object
FileSelector

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