sanitizePath
Definition
-- @/=[C]:-1
function sanitizePath(...)
Callers
@/lua/ge/extensions/editor/assetManagementTool.lua
local function changeBasePath(path, newBasePath)
return sanitizePath(path:gsub("(.*/)(.*)", newBasePath .. "/%2"), false)
end
@/lua/common/utils.lua
path.getPathLevelMain = function(levelName)
return sanitizePath('/levels/'..levelName..'/main.level.json')
end
path.getPathLevelInfo = function(levelName)
return sanitizePath('/levels/'..levelName..'/info.json')
end
@/lua/ge/extensions/tech/techCore.lua
local _, filename, _ = path.split(sanitizePath(trackPath))
@/lua/ge/extensions/editor/api/core.lua
-- first copy all the files from current level folder to new one
newPath = sanitizePath(newPath)
if newPath == "/levels" or newPath == "/levels/" then