aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-07-26 14:09:03 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-07-26 14:09:03 -0400
commit122ad63ac90542d2c2964b071783799cfcdf2e07 (patch)
tree79b335278e5639c1c544f14072e35b38e219c80d /runtime/doc/eval.txt
parent7a6bf3f418c5ad94ac2ac71f21275a87d08e87b9 (diff)
parent01901e00389446840c19839a29c001096aae6dc0 (diff)
downloadrneovim-122ad63ac90542d2c2964b071783799cfcdf2e07.tar.gz
rneovim-122ad63ac90542d2c2964b071783799cfcdf2e07.tar.bz2
rneovim-122ad63ac90542d2c2964b071783799cfcdf2e07.zip
Merge pull request #3041 from ZyX-I/better-mkdir
Move recursive directory creation function to os/fs.c
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index e80ab2c714..61b23b7e03 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -4573,15 +4573,16 @@ mkdir({name} [, {path} [, {prot}]])
If {prot} is given it is used to set the protection bits of
the new directory. The default is 0755 (rwxr-xr-x: r/w for
the user readable for others). Use 0700 to make it unreadable
- for others. This is only used for the last part of {name}.
- Thus if you create /tmp/foo/bar then /tmp/foo will be created
- with 0755.
- Example: >
+ for others.
+ {Nvim}
+ {prot} is applied for all parts of {name}. Thus if you create
+ /tmp/foo/bar then /tmp/foo will be created with 0700. Example: >
:call mkdir($HOME . "/tmp/foo/bar", "p", 0700)
< This function is not available in the |sandbox|.
- Not available on all systems. To check use: >
- :if exists("*mkdir")
-<
+
+ If you try to create an existing directory with {path} set to
+ "p" mkdir() will silently exit.
+
*mode()*
mode([expr]) Return a string that indicates the current mode.
If [expr] is supplied and it evaluates to a non-zero Number or