0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1128

Problem:    MS-Windows: delete() does not recognize junctions.
Solution:   Add mch_isrealdir() for MS-Windows. Update mch_is_symbolic_link().
            (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-01-17 22:15:16 +01:00
parent 021b593e7e
commit 203258c3ad
4 changed files with 32 additions and 13 deletions

View File

@@ -7297,14 +7297,10 @@ delete_recursive(char_u *name)
/* A symbolic link to a directory itself is deleted, not the directory it
* points to. */
if (
# if defined(WIN32)
mch_isdir(name) && !mch_is_symbolic_link(name)
# else
# ifdef UNIX
# if defined(UNIX) || defined(WIN32)
mch_isrealdir(name)
# else
# else
mch_isdir(name)
# endif
# endif
)
{