# GetPathSeparator()

Source: https://help.malighting.com/grandMA3/2.3/HTML/lua_objectfree_getpathseparater.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
## 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:

|                                                                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Copy Code](javascript:void\(0\))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
``` |