mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
fileinfo: implement os_fileinfo_blocksize
This commit is contained in:
@@ -412,6 +412,15 @@ uint64_t os_fileinfo_hardlinks(const FileInfo *file_info)
|
||||
return file_info->stat.st_nlink;
|
||||
}
|
||||
|
||||
/// Get the blocksize from a `FileInfo`.
|
||||
///
|
||||
/// @return blocksize in bytes.
|
||||
uint64_t os_fileinfo_blocksize(const FileInfo *file_info)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
return file_info->stat.st_blksize;
|
||||
}
|
||||
|
||||
/// Get the `FileID` for a given path
|
||||
///
|
||||
/// @param path Path to the file.
|
||||
|
Reference in New Issue
Block a user