Index File system
trap_FS_GetFileList
Description
Get the list of all the files fitting a constraint in a directory.
Prototype
int trap_FS_GetFileList(
const char *path,
const char *extension,
char *listbuf,
int bufsize
);
Parameters
- path : String reflecting a directory.
- extension : File extension to list (incluing a leading period).
- listbuf : Pointer to a buffer to fill.
- bufsize : Length of the buffer.
Remarks
This fills listbuf with a NULL delimited list of all the files in the directory specified by path ending in extension : "foo\0bar\0\0".
Return value
Returns number of matching files.
See also
Author(s)