mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
fileinfo: implement os_fileinfo_hardlinks
This commit is contained in:
@@ -403,6 +403,15 @@ off_t os_fileinfo_size(const FileInfo *file_info)
|
||||
return file_info->stat.st_size;
|
||||
}
|
||||
|
||||
/// Get the number of hardlinks from a `FileInfo`.
|
||||
///
|
||||
/// @return number of hardlinks.
|
||||
uint64_t os_fileinfo_hardlinks(const FileInfo *file_info)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
return file_info->stat.st_nlink;
|
||||
}
|
||||
|
||||
/// Get the `FileID` for a given path
|
||||
///
|
||||
/// @param path Path to the file.
|
||||
|
Reference in New Issue
Block a user