Skip to content

Commit 03a5d0e

Browse files
committed
fix: parse storage path
1 parent b815469 commit 03a5d0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/files.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -919,10 +919,10 @@ function m.resolvePathPlaceholders(path)
919919
if addonsPath then
920920
return addonsPath
921921
end
922-
local client = require 'client'
923-
local storagePath = client.getOption('storagePath')
922+
local client = require("client")
923+
local storagePath = fs.path(client.getOption("storagePath"))
924924
if storagePath then
925-
addonsPath = storagePath .. "/addonManager/addons"
925+
addonsPath = (storagePath / "addonManager/addons"):string()
926926
else
927927
-- Common path across OSes
928928
local dataPath = "User/globalStorage/sumneko.lua/addonManager/addons"

0 commit comments

Comments
 (0)