Function

audit_listdir

Iterates over the files and folders in a directory.

Since v1.0
int audit_listdir(
const char *dir, void *cb_data, audit_listdir_cb cb)

Parameters 🔗

dir in

Path to the directory.

cb_data in

User pointer to give to cb.

cb out

Callback function to invoke for each file and folder in dir.

Return Value 🔗

Number of files in the directory.

Discussion 🔗

The function cb is invoked for each file and folder in the directory dir.