Update path.lua

This commit is contained in:
VorTechnix 2024-10-25 16:58:36 -07:00
parent 82d8fd8c31
commit e6712d9bf6
No known key found for this signature in database
GPG key ID: 091E91A69545D5BA

View file

@ -38,9 +38,9 @@ end
-- @example Basic usage -- @example Basic usage
-- local path = file_path("C:\\Users", "me", "/Documents/code.lua") -- local path = file_path("C:\\Users", "me", "/Documents/code.lua")
path.join = function( ... ) path.join = function( ... )
local pathlets = { ... }
local ok, err = check( ... ) local ok, err = check( ... )
if not ok then return false, err end if not ok then return false, err end
local pathlets = { ... }
return path.norm(table.concat(pathlets, path.sep)) return path.norm(table.concat(pathlets, path.sep))
end end