fix(fs): duplicate path separator #21509

Fixes #21497
This commit is contained in:
Eric Haynes
2023-01-03 12:24:14 -05:00
committed by GitHub
parent 5e9508c702
commit 1b3c255f60
2 changed files with 6 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ end
---@private
local function join_paths(...)
return table.concat({ ... }, '/')
return (table.concat({ ... }, '/'):gsub('//+', '/'))
end
--- Return an iterator over the files and directories located in {path}