Skip to content

path.appendExtension

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Appends an extension to a file path if it is not already present.

p = path.appendExtension(p, ext)

Parameters

p is a file system path.

ext is the extension to append to the path.

Return Value

A new file system path with the extension appended, if it was not already part of the path.

Availability

Premake 5.0 or later.

See Also

Clone this wiki locally