premake/website/docs/path.translate.md

20 lines
345 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
Converts the file separators in a path.
```lua
path.translate("path", "newsep")
```
### Parameters ###
`path` is the file system path to translate; `newsep` is the new path separator. If `newsep` is not specified a Windows-style backslash is assumed.
### Return Value ###
The translated path.
### Availability ###
Premake 4.0 or later.