How do you get a list of files within a directory so each can be processed?
C++11/Linux version:
#include if (auto dir = opendir("some_dir/")) { while (auto f = readdir(dir)) { if (!f->d_name || f->d_name[0] == '.') continue; // Skip everything that starts with a dot printf("File: %s\n", f->d_name); } closedir(dir); }