diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-14 13:51:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-14 13:51:55 +0200 |
commit | 78a16b0f2a142aae1fdc96c50ab0f25194d0e755 (patch) | |
tree | 2980fc918579aba91215787b3ce7f535708d4ad4 /runtime | |
parent | 98da6ecab905df48a67da36ce60233f45726c979 (diff) | |
download | vim-78a16b0f2a142aae1fdc96c50ab0f25194d0e755.zip |
patch 8.0.1708: mkdir with 'p' flag fails on existing directory
Problem: Mkdir with 'p' flag fails on existing directory, which is
different from the mkdir shell command.
Solution: Don't fail if the directory already exists. (James McCoy,
closes #2775)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index b0170b847..1868f4ee7 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -6138,6 +6138,8 @@ mkdir({name} [, {path} [, {prot}]]) Example: > :call mkdir($HOME . "/tmp/foo/bar", "p", 0700) < This function is not available in the |sandbox|. + There is no error if the directory already exists and the "p" + flag is passed (since patch 8.0.1708). Not available on all systems. To check use: > :if exists("*mkdir") < |