GetPathSeparator()
Description
Section titled “Description”The GetPathSeparator function returns a string with the path separator for the operating system.
Arguments
Section titled “Arguments”This function does not accept any arguments.
Return
Section titled “Return”- String:
The string is a single character indicating the path separator based on the operating system.
Example
Section titled “Example”This example prints the path separator:
| Copy CodeLua |
| ``` |
| return function() |
--- This prints the path seperator. It is different between a Linux and macOS (/) and a Windows (\) operating system.Printf("The path seperator is " .. GetPathSeparator())end