Skip to content

format

typescript
Path.ChangeExtension(path, ext)

class: Path

description

Change the extension of the specified path.

parameter

param_nametypedescription
pathstringThe path to be modified.
extstringThe new extension.

return

typedescription
stringThe path with the new extension.

code example