Links
dtSearch Text Retrieval Engine Programmer's Reference
dtsFileSpec Structure
Data Members | Classes | Legend | Members | Methods | Send Feedback

Used to define a set of files to search or index

struct dtsFileSpec {
  const char * includeFilters;
  const char * excludeFilters;
  char dir[FileNameLen];
  char dirListName[FileNameLen];
  char fileListName[FileNameLen];
  const char * dirList;
};
File

dtsearch.h

Remarks

fileListName provides a way to simply pass a list of files to search or index. 

Alternatively, the calling program can ask dtSearch to list the files in one directory (the dir member) or in a list of directories (the dirListName member), using the supplied include and exclude filters. 

To specify a directory and all subdirectories, add a <+> symbol at the end, like this: C:DOCS<+>

Data Members
Data Member 
Description 
dir 
Directory to scan using the filters. Deprecated: Use dirList
Null-delimited string set containing list of directories to scan using the filters 
Name of file containing list of directories to scan using the filters 
Filename filters used to exclude files in selected directories. Must point to a null-delimited string set, terminated by a double-null. If not used, initialize to 0.
Filename filters containing a slash (/ or \) are matched against the full path and filename. Filename filters without a slash (/ or \) are matched against only the filename. 
Name of file containing list of files. The includeFilters and excludeFilters will not apply to listed files. 
Filename filters to apply to files in the directories selected. Must point to a null-delimited string set, terminated by a double-null. If not used, initialize to 0.
Filename filters containing a slash (/ or \) are matched against the full path and filename. Filename filters without a slash (/ or \) are matched against only the filename. 
Group
Methods
Method 
Description 
Clear all data 
copy 
Copy data from another dtsFileSpec (shallow copy) 
Constructor 
Legend
 
Data Member 
 
Method 
Links
You are here: C++ API > Classes > dtsFileSpec Structure
Copyright (c) 1995-2008 dtSearch Corp. All rights reserved.