Skip to content

Commit

Permalink
fix(actions.create): use default mkdir mode 0755 (#361)
Browse files Browse the repository at this point in the history
plenary's default for some reason is 0700.
Changing ours to 0755 to be more consistent with `mkdir` which is also
the default for `fs_mkdir` (via `mkdir`).
  • Loading branch information
jamestrew committed Feb 15, 2024
1 parent 26b5e86 commit 48ffb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/_extensions/file_browser/actions.lua
Expand Up @@ -85,7 +85,7 @@ local create = function(file, finder)
if not fb_utils.is_dir(file.filename) then
file:touch { parents = true }
else
Path:new(file.filename:sub(1, -2)):mkdir { parents = true }
Path:new(file.filename:sub(1, -2)):mkdir { parents = true, mode = 493 } -- 493 => decimal for mode 0755
end
return file
end
Expand Down

0 comments on commit 48ffb8d

Please sign in to comment.