Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > path.translate


path.translate

The path.translate function 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 nil, the native path separator for the current environment will be used.

Return Value

The translated path.

Clone this wiki locally