Sanitized name needs to be unsanitized when talking to the server

This commit is contained in:
Trevor Lund
2021-04-04 21:54:34 -05:00
parent 88a67ceb5f
commit e8f7ffe40a
2 changed files with 3 additions and 3 deletions

View File

@@ -161,8 +161,8 @@ end
local deleteFiles = { }
for name, data in pairs(localFiles) do
data.name = name
local sanitizedName = name:gsub("{space}", " ")
if not remoteFiles[name] and not remoteFiles[sanitizedName] then
local unSanitizedName = name:gsub(" ", "{space}")
if not remoteFiles[name] and not remoteFiles[unSanitizedName] then
table.insert(deleteFiles, data)
end
end