mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
os/fs: Rename os_file_exists to os_path_exists (#4973)
Because the old name did not indicate that the function would return true on directories as well.
This commit is contained in:

committed by
Justin M. Keyes

parent
bd6dad06dd
commit
5f1a153831
@@ -566,10 +566,11 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file,
|
||||
/*
|
||||
* Move the file names to allocated memory.
|
||||
*/
|
||||
for (j = 0, i = 0; i < *num_file; ++i) {
|
||||
/* Require the files to exist. Helps when using /bin/sh */
|
||||
if (!(flags & EW_NOTFOUND) && !os_file_exists((*file)[i]))
|
||||
for (j = 0, i = 0; i < *num_file; i++) {
|
||||
// Require the files to exist. Helps when using /bin/sh
|
||||
if (!(flags & EW_NOTFOUND) && !os_path_exists((*file)[i])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* check if this entry should be included */
|
||||
dir = (os_isdir((*file)[i]));
|
||||
|
Reference in New Issue
Block a user