aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/fs.lua
diff options
context:
space:
mode:
authorSam-Briney <46232496+Sam-Briney@users.noreply.github.com>2025-11-13 21:50:44 -0500
committerGitHub <noreply@github.com>2025-11-14 03:50:44 +0100
commit198f07572c0014774fb87371946e0f03b4908bce (patch)
treec76c664fd11704310d8a77221a2ff59a5bec4e78 /lua/mason-core/fs.lua
parentchore(main): release 2.1.0 (#1996) (diff)
downloadmason-198f07572c0014774fb87371946e0f03b4908bce.tar
mason-198f07572c0014774fb87371946e0f03b4908bce.tar.gz
mason-198f07572c0014774fb87371946e0f03b4908bce.tar.bz2
mason-198f07572c0014774fb87371946e0f03b4908bce.tar.lz
mason-198f07572c0014774fb87371946e0f03b4908bce.tar.xz
mason-198f07572c0014774fb87371946e0f03b4908bce.tar.zst
mason-198f07572c0014774fb87371946e0f03b4908bce.zip
fix(installer): attempt to recover from known fs error while finalizing installation on some file systems (#1933)
Co-authored-by: William Boman <william@redwill.se>
Diffstat (limited to 'lua/mason-core/fs.lua')
-rw-r--r--lua/mason-core/fs.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/mason-core/fs.lua b/lua/mason-core/fs.lua
index 5b194c4f..e7f8343f 100644
--- a/lua/mason-core/fs.lua
+++ b/lua/mason-core/fs.lua
@@ -79,6 +79,12 @@ local function make_module(uv)
end
---@param path string
+ function M.rmdir(path)
+ log.debug("fs: rmdir", path)
+ uv.fs_rmdir(path)
+ end
+
+ ---@param path string
---@param new_path string
function M.rename(path, new_path)
log.debug("fs: rename", path, new_path)