2022-02-19 03:28:03 +00:00
|
|
|
local function run_once()
|
|
|
|
local dl = minetest.get_dir_list(yl_template.worldpath, true)
|
|
|
|
local create = true
|
|
|
|
|
|
|
|
for _, v in ipairs(dl) do
|
2023-04-26 15:14:15 +00:00
|
|
|
if v == yl_template.settings.save_path then
|
2022-02-19 03:28:03 +00:00
|
|
|
create = false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
if create then
|
2023-04-26 15:14:15 +00:00
|
|
|
minetest.mkdir(yl_template.worldpath .. DIR_DELIM .. yl_template.settings.save_path)
|
2022-02-19 03:28:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
run_once()
|