Skip to main content
100%

Recursive directory search in openframeworks

✓ Published0🌍 Public
Aaman-tiwari
Last edited Feb 19, 2016
Created on Feb 19, 2016

This example demonstrates a recursive directory search that filters for image files with the extensions jpg, png, gif, and jpeg, collecting matching `ofFile` objects into a vector. The `scan_dir` function traverses each directory using `ofDirectory` and `ofFile` from openFrameworks, recursively descending into subdirectories while sorting entries and checking each file’s extension against the allowed list. Found image files are appended to the `files` vector for subsequent visualization. The code relies on `std::find` and the standard algorithm library to compare extensions.

AI-generated description

Similar vizzes