summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/files.lua b/script/files.lua
index 8cc7a5ab..b9df5695 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -78,7 +78,7 @@ end
---@param uri uri
---@return uri
function m.getRealUri(uri)
- if platform.OS ~= 'Windows' then
+ if platform.os ~= 'windows' then
return furi.normalize(uri)
end
if not furi.isValid(uri) then
@@ -833,7 +833,7 @@ function m.isDll(uri)
if not ext then
return false
end
- if platform.OS == 'Windows' then
+ if platform.os == 'windows' then
if ext == 'dll' then
return true
end
@@ -932,7 +932,7 @@ function m.normalize(path)
break
end
end
- if platform.OS == 'Windows' then
+ if platform.os == 'windows' then
path = path:gsub('[/\\]+', '\\')
:gsub('[/\\]+$', '')
:gsub('^(%a:)$', '%1\\')