grandMA3 User Manual Publication

GetPathSeparator()

grandMA3 User Manual » Plugins » Lua Functions - Object-Free API » GetPathSeparator()
Version 2.1

Description

The GetPathSeparator function returns a string with the path separator for the operating system.

Arguments

This function does not accept any arguments.

Return

  • String:
    The string is a single character indicating the path separator based on the operating system.

Example

This example prints the path separator:

Lua
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