diff options
| author | William Boman <william@redwill.se> | 2023-03-05 02:33:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-05 01:33:57 +0000 |
| commit | c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991 (patch) | |
| tree | fc51d2ede21b745e9810026281fe4fe427f12b8c /lua/mason-core/fs.lua | |
| parent | chore: autogenerate (#1051) (diff) | |
| download | mason-c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991.tar mason-c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991.tar.gz mason-c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991.tar.bz2 mason-c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991.tar.lz mason-c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991.tar.xz mason-c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991.tar.zst mason-c1dbd9824ceb03f2e378cc5b732cd11ba0e4c991.zip | |
feat(InstallContext): add strict_mode flag (#1055)
Also add some more ctx.fs methods.
Diffstat (limited to 'lua/mason-core/fs.lua')
| -rw-r--r-- | lua/mason-core/fs.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/mason-core/fs.lua b/lua/mason-core/fs.lua index b60749e2..e9b7a629 100644 --- a/lua/mason-core/fs.lua +++ b/lua/mason-core/fs.lua @@ -146,6 +146,13 @@ local function make_module(uv) uv.fs_symlink(path, new_path) end + ---@param path string + ---@param mode integer + function M.chmod(path, mode) + log.trace("fs: chmod", path, mode) + uv.fs_chmod(path, mode) + end + return M end |
