Skip to content

Commit 1fe54f6

Browse files
committed
review fix
1 parent 6c8dd49 commit 1fe54f6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

poki-sdk/editor/poki.editor_script

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ local function bundle_poki(show_dialog)
6161
end
6262

6363
local function ensure_directory(path)
64-
local attrs = editor.external_file_attributes(path)
65-
if not attrs.exists then
66-
editor.execute("mkdir", "-p", path, { reload_resources = false })
64+
if not editor.external_file_attributes(path).exists then
65+
if editor.platform:sub(-#"win32") == "win32" then
66+
editor.execute("cmd.exe", "/c", "mkdir", path:gsub("/", "\\"), {reload_resources = false})
67+
else
68+
editor.execute("mkdir", "-p", path, {reload_resources = false})
69+
end
6770
end
6871
return editor.external_file_attributes(path).path
6972
end

0 commit comments

Comments
 (0)