diff options
author | Daniel Xu <danobi@users.noreply.github.com> | 2016-07-05 22:40:25 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-07-06 01:40:25 -0400 |
commit | 5f1a153831d480180b2203120cff776d771ec1a4 (patch) | |
tree | 09fc7791734a1e3ed5a72c6e8195707db7e2ece4 /src/nvim/os/fs.c | |
parent | bd6dad06dd1f4182cc65c41575af8bf1e3ea22a9 (diff) | |
download | rneovim-5f1a153831d480180b2203120cff776d771ec1a4.tar.gz rneovim-5f1a153831d480180b2203120cff776d771ec1a4.tar.bz2 rneovim-5f1a153831d480180b2203120cff776d771ec1a4.zip |
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.
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r-- | src/nvim/os/fs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 49c42cb63d..d12d34d595 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -599,14 +599,14 @@ int os_fchown(int fd, uv_uid_t owner, uv_gid_t group) return r; } -/// Check if a file exists. +/// Check if a path exists. /// -/// @return `true` if `name` exists. -bool os_file_exists(const char_u *name) +/// @return `true` if `path` exists +bool os_path_exists(const char_u *path) FUNC_ATTR_NONNULL_ALL { uv_stat_t statbuf; - return os_stat((char *)name, &statbuf) == kLibuvSuccess; + return os_stat((char *)path, &statbuf) == kLibuvSuccess; } /// Check if a file is readable. |