TORCS  1.3.9
The Open Racing Car Simulator
Directory Management API

This is used for directory manipulation. More...

Functions

tFListGfDirGetList (const char *dir)
 Get the list of files of a given directory. More...
 
tFListGfDirGetListFiltered (const char *dir, const char *suffix)
 Get the list of files with matching suffix of a given directory. More...
 
void GfDirFreeList (tFList *list, tfDirfreeUserData freeUserData, bool freename, bool freedispname)
 Free a directory list. More...
 

Detailed Description

This is used for directory manipulation.

Function Documentation

◆ GfDirFreeList()

void GfDirFreeList ( tFList list,
tfDirfreeUserData  freeUserData,
bool  freename,
bool  freedispname 
)

Free a directory list.

Parameters
listList of files
freeUserDataUser function used to free the user data
freenameIf true name gets freed too
freedispnameIf true display name gets freed too
Returns
none

Definition at line 76 of file directory.cpp.

◆ GfDirGetList()

tFList* GfDirGetList ( const char *  dir)

Get the list of files of a given directory.

Parameters
dirdirectory name
Returns
The list of files

Definition at line 43 of file directory.cpp.

◆ GfDirGetListFiltered()

tFList* GfDirGetListFiltered ( const char *  dir,
const char *  suffix 
)

Get the list of files with matching suffix of a given directory.

Parameters
dirdirectory name
suffixsuffix (without dot)
Returns
The list of files

Definition at line 59 of file directory.cpp.