fileDirectory function

CityEngine 2023.0    |    |  

Syntax

  • string fileDirectory(filePath)

Parameters

  1. filePathstring

Returns

Returns file directory of given filePath, without file name.

Description

The fileDirectory function returns file directory (without the file name) of the given filePath.

Related

Examples

fileDirectory("assets/obj/mygeometry.01.obj")
# result = "assets/obj/"

In this topic