fileExists function

Syntax

  • bool filesExists(filePath)

Parameters

  1. filePath—string

Returns

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

Description

The fileExists function checks whether the file filePath exists in the workspace. The function only checks files with supported format, i.e., 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 readTable). The same search order as for asset insertion and texture lookups is used.

Related