Open a specific directory for searching by sending the opendir:pattern:mode: message to the CfsDirectoryDescriptor class. This answers a CfsDirectoryDescriptor instance that is similar to the CfsFileDescriptor instance used to access regular files.The opendir:pattern:mode: message takes three arguments. The first argument is a string specifying the path of the directory to be searched.The second argument is a pattern for matching entry names. The $* wildcard character matches 0 or more characters, the $? wildcard character matches any single character. A pattern of '*' always matches all files, regardless of platform.The third argument specifies the type of files to match. It is a logical inclusive-OR of one or more of the following constants, which are defined in the CfsConstants pool dictionary:
|