Skip to content

GetPathSeparator

Anthony Headley edited this page Apr 19, 2020 · 1 revision

GetPathSeparator() : string

Brief:

Returns the path seperator based on what Operating system the console in running on.

Paramiters:

Name Description Optional

Returns:

pathSeperator : string "\" on Windows pathSeperator : string "/" on on *nix (and macOS)

Examples:

local sep = GetPathSeparator()
E(sep) -- "\\" if on Windows, "/" if on *nix
Clone this wiki locally