fix: write path (#2338)
This commit is contained in:
@@ -153,11 +153,11 @@ function M.copy_path(opts, on_log, on_complete)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.fn.mkdir(new_entry_path, "p")
|
vim.fn.mkdir(new_entry_path, "p")
|
||||||
Path:new(new_entry_path):write(Path:new(abs_path):joinpath(entry):read())
|
Path:new(new_entry_path):write(Path:new(abs_path):joinpath(entry):read(), "w")
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Path:new(new_abs_path):write(Path:new(abs_path):read())
|
Path:new(new_abs_path):write(Path:new(abs_path):read(), "w")
|
||||||
end
|
end
|
||||||
on_complete(true, nil)
|
on_complete(true, nil)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user