|
Summary
Directory wildcards used for directory listing.
Description
The Wildcards property is used to limit the directory entries reported during a directory list operation to just those files and subdirectories matching the given wildcard expression.
Directory listings are initiated by setting the DirAction property to DIR_ACTION_LIST.
Only one wildcard expression, such as "*.TXT", can be specified. It is not possible to specify composite wildcards, such as "*.EXE *.COM" or "*.* - *.TMP".
If the Wildcards property is left blank, then all files and subdirectories will be listed. This is identical to setting this property to "*.*".
This property can be changed at any time except during a directory list operation. There is no default value for this property.
Example
FTPClient.Wildcards = "*.c" FTPClient.ListType = LIST_TYPE_SHORT FTPClient.DirAction = DIR_ACTION_LIST
Note
For new applications use the wildcards parameter in the ListDir method.
|