fileExists function

Syntax

bool fileExists(filePath)

Parameters

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

Copyright ©2008-2023 Esri R&D Center Zurich. All rights reserved.