Skip to content

Commit

Permalink
Remove doc about new_file_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fortizc committed Dec 25, 2024
1 parent 50697b1 commit 11e38c0
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions doc/oil.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ CONTENTS *oil-content
5. Actions |oil-actions|
6. Highlights |oil-highlights|
7. Trash |oil-trash|
8. File Creation |oil-file_creation|

--------------------------------------------------------------------------------
CONFIG *oil-config*
Expand Down Expand Up @@ -717,35 +716,6 @@ Mac:
Windows:
Oil supports the Windows Recycle Bin. All features should work.

--------------------------------------------------------------------------------
FILE CREATION *oil-file_creation*


Oil defines `create_files_mode` to set the permission for new files. The mode
follows the Posix numeric standard which use octal notation (base-8), however
the variable must be set in decimal.

00700 user (file owner) has read, write, and execute permission
00400 user has read permission
00200 user has write permission
00100 user has execute permission
00070 group has read, write, and execute permission
00040 group has read permission
00020 group has write permission
00010 group has execute permission
00007 others have read, write, and execute permission
00004 others have read permission
00002 others have write permission
00001 others have execute permission
(from the open (2) man pages)

An easy way to provide the right value for `create_files_mode` is using
`tonumber(e [, base])` function with `base = 8`, for example:
>lua
create_files_mode = tonumber("0644", 8)

The default value is 420 in decimal or 0644 in octal


================================================================================
vim:tw=80:ts=2:ft=help:norl:syntax=help:

0 comments on commit 11e38c0

Please sign in to comment.