Hey!
For my newest app, I need to recursively scan a directory for files of a certain type (determined by the file extension). Thing is, what I want to do, is to scan through a main directory, find the contents, if any of them are directories, scan those too, and keep going until all of the directories are scanned.
What classes should I be looking into for this?
Thanks!
FlyingIsFun1217
Recursive Directory Scan
-
- Super wx Problem Solver
- Posts: 497
- Joined: Mon Nov 06, 2006 9:58 pm
wxDir has a few functions that will work GetFirst(), GetNext(), and also Traverse().
The wxDir page has a sample using GetFirst() and GetNext(). The wxDirTraverser page has a sample using Traverse(). GetFirst(), GetNext() is probably simpler.
-Max
The wxDir page has a sample using GetFirst() and GetNext(). The wxDirTraverser page has a sample using Traverse(). GetFirst(), GetNext() is probably simpler.
-Max
-
- Super wx Problem Solver
- Posts: 497
- Joined: Mon Nov 06, 2006 9:58 pm