You can use the routines CBL_DIR_SCAN_START, CBL_DIR_SCAN_READ and CBL_DIR_SCAN_END to read through a directory listing of files.
There is an example under CBL_DIR_SCAN_READ in the docs.
You can use the routines CBL_DIR_SCAN_START, CBL_DIR_SCAN_READ and CBL_DIR_SCAN_END to read through a directory listing of files.
There is an example under CBL_DIR_SCAN_READ in the docs.