Recursively Scan Directories with ofDirectory

Hey guys/gals!

I’m working on an oF app that will allow me to drag and drop a directory to find all header files and create an inheritance map from them. The following function takes the dropped directory and recursively scans it (and all its subdirectories) for header files and pushes them back into the headerFile vector. At the moment it will only find a fraction of the headers in the original directory, however after doing some cout checks I’m pretty sure I can see that is entering sub-directories. If anyone can tell me what’s going wrong I’d be greatly appreciative!

My code’s here -

Cheers for your time!


Was accidently incrementing twice as much as needed due to replacing and old while loop with a for loop and forgetting to take our the i++. Otherwise runs fine!