syspath
function syspath( path ) --> spath
Description
Converts a path to the style of the current system, windows or unix.
Parameters
- path
-
A unix or windows style path.
Return Values
- spath
-
A path in the style of the current system.
Code
--ZFUNC-syspath-v1 local function syspath( path ) --> spath --ZFUNC-separator-v1 local function separator() return _G.package.config:sub( 1, 1 ) end return path:gsub( "/", separator() ) end return syspath