Initial community commit
This commit is contained in:
26
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/path.appendExtension.md
vendored
Normal file
26
Src/external_dependencies/openmpt-trunk/include/premake/website/docs/path.appendExtension.md
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
Appends an extension to a file path if it is not already present.
|
||||
|
||||
```lua
|
||||
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 ###
|
||||
|
||||
* [path.join](path.join.md)
|
||||
Reference in New Issue
Block a user