mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
fileinfo: rename os_get_file_info{,_link,_fd}
This commit is contained in:
@@ -328,7 +328,7 @@ int len /* buffer size, only used when name gets longer */
|
||||
struct dirent *dp;
|
||||
|
||||
FileInfo file_info;
|
||||
if (os_get_file_info_link((char *)name, &file_info)) {
|
||||
if (os_fileinfo_link((char *)name, &file_info)) {
|
||||
/* Open the directory where the file is located. */
|
||||
slash = vim_strrchr(name, '/');
|
||||
if (slash == NULL) {
|
||||
@@ -354,7 +354,7 @@ int len /* buffer size, only used when name gets longer */
|
||||
STRLCPY(newname + (tail - name), dp->d_name,
|
||||
MAXPATHL - (tail - name) + 1);
|
||||
FileInfo file_info_new;
|
||||
if (os_get_file_info_link((char *)newname, &file_info_new)
|
||||
if (os_fileinfo_link((char *)newname, &file_info_new)
|
||||
&& os_file_info_id_equal(&file_info, &file_info_new)) {
|
||||
STRCPY(tail, dp->d_name);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user