This commit is contained in:
@@ -16,7 +16,7 @@ end
|
|||||||
local function with_project(structure, fn)
|
local function with_project(structure, fn)
|
||||||
local root = vim.fn.tempname()
|
local root = vim.fn.tempname()
|
||||||
vim.fn.mkdir(root, "p")
|
vim.fn.mkdir(root, "p")
|
||||||
root = vim.loop.fs_realpath(root) or root
|
root = vim.uv.fs_realpath(root) or root
|
||||||
for rel_path, content in pairs(structure) do
|
for rel_path, content in pairs(structure) do
|
||||||
write_file(root .. "/" .. rel_path, content)
|
write_file(root .. "/" .. rel_path, content)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user