aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2024-02-11 17:58:08 -0500
committerAdam Harrison <adamdharrison@gmail.com>2024-02-11 17:58:08 -0500
commitcb93fe6e34c2cf697e29809d50ff56050c3ddf99 (patch)
treecc7f79e1bd1c1a48cc1c4b8c5aa1d8f3cef663da
parent5e36659a2720b9abe092fd52b251a5005f7a3825 (diff)
downloadlite-xl-plugin-manager-cb93fe6e34c2cf697e29809d50ff56050c3ddf99.tar.gz
lite-xl-plugin-manager-cb93fe6e34c2cf697e29809d50ff56050c3ddf99.zip
Made sure to create folders for files if they don't exist.
-rw-r--r--src/lpm.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index 7604b63..49768ca 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -863,6 +863,7 @@ function Addon:install(bottle, installing)
local stripped_local_path = local_path:find("%.[^%.]+%-[^%.]+%.[^%.]*$") and local_path:gsub("%.[^%.]+%-[^%.]+", "") or local_path
if not system.stat(temporary_path) then
+ common.mkdirp(common.dirname(temporary_path))
if SYMLINK and self.repository:is_local() and system.stat(local_path) then
log_action("Symlinking " .. local_path .. " to " .. target_path)
system.symlink(local_path, temporary_path)