FTS *fts_open(char const **argv, int options, int(*compar)(const FTSENT **, const FTSENT **));
Is a NULL terminated array of character pointers naming one or more paths that make up the file hierarchy.
Must be a set of the following file processing options:
Windows has no symbolic links, so this option is ignored.
This sets FTS_NOCHDIR.
This causes the fts functions not change directories as they traverse the file hierarchy. Applications should not change their current directory and try to access files unless FTS_NOCHDIR is set.
This allows the fts functions to set the fts_info field to FTS_NSOK and leave the contents of the statp field undefined. This is used for a performance optimization.
This causes fts functions to return pointers to the files themselves. Either FTS_PHYSICAL or FTS_LOGICAL must be provided.
This causes fts functions to return FTSENT structures for any files named '\&.' or '..'.
This causes fts functions not to traverse into directories that have a device number different from which the traversal began.
Specifies user defined function that is used to order the traversal of the file hierarchy. This function takes pointers to two FTSENT structures as arguments and return a negative number, zero, or a positive number. A negative value indicates that the file referenced in the first argument comes before the second, in any order if the value is zero, and after the second argument if the value is positive. If the compar argument is NULL, then the directory is traversed in the order of the list in argv for root paths and the order listed in the directory for everything else.
FTS_COMFOLLOW is ignored because there are no symbolic links on Windows.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.