diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-17 18:23:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-17 18:23:58 +0100 |
commit | 336bd622c31e1805495c034e1a8cfadcc0bbabc7 (patch) | |
tree | cd49277ac430addcad75432e8d9a462cab82e0a4 /src/fileio.c | |
parent | 72defda84eb26be9e2ade56c7877b912f818026e (diff) |
patch 7.4.1120v7.4.1120
Problem: delete(x, 'rf') fails if a directory is empty. (Lcd)
Solution: Ignore not finding matches in an empty directory.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index fdaad20bbc..55337d6825 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -7313,7 +7313,7 @@ delete_recursive(char_u *name) if (exp == NULL) return -1; if (gen_expand_wildcards(1, &exp, &file_count, &files, - EW_DIR|EW_FILE|EW_SILENT|EW_ALLLINKS|EW_DODOT) == OK) + EW_DIR|EW_FILE|EW_SILENT|EW_ALLLINKS|EW_DODOT|EW_EMPTYOK) == OK) { for (i = 0; i < file_count; ++i) if (delete_recursive(files[i]) != 0) |