mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +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
@@ -480,8 +480,9 @@ staterr:
|
||||
if (arg2 != NULL) {
|
||||
ppath = xmalloc(MAXPATHL + 1);
|
||||
expand_env((char_u *)arg2, (char_u *)ppath, MAXPATHL);
|
||||
if (!os_file_exists((char_u *)ppath))
|
||||
if (!os_path_exists((char_u *)ppath)) {
|
||||
goto staterr;
|
||||
}
|
||||
}
|
||||
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user