fileExists function

bool fileExists(filePath)

filePath string

Returns true if file filePath exists and is a supported format, false otherwise.

The fileExists function checks whether the file filePath exists in the workspace.

The function only checks files with supported format, that is, files that can be used in CGA operations and functions. This includes asset formats (see i operation), image formats (see texturing), material formats (see readMaterial), text formats (see readTextFile), and table formats (see readStringTable and readFloatTable). The same search order as for asset insertion and texture lookups is used.

Related