This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Description
That will be cool if library have a function to search for files in folders recursively
Maybe something like this:
typedef void(*fileHandler)(const char* folder, const char* file);
void foreachFileInDirectoryRecursive(const char* path, fileHandler handler)
{
INFO("Looking for files in %s recursively", path);
FOREACH_FILE_IN_DIR(file, path, {
if (strcmp(".", file) && strcmp("..", file))
{
const char* fullpath = PATH(path, file);
if (IS_DIR(fullpath))
{
foreachFileInDirectoryRecursive(fullpath, handler);
}
else
{
handler(path, file);
}
free(fullpath);
}
});
}