mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +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
@@ -7650,7 +7650,7 @@ open_exfile (
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
if (!forceit && *mode != 'a' && os_file_exists(fname)) {
|
||||
if (!forceit && *mode != 'a' && os_path_exists(fname)) {
|
||||
EMSG2(_("E189: \"%s\" exists (add ! to override)"), fname);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user