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

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)

Timbo


QuakeIII trap calls reference