std::filesystem::directory_entry::hard_link_count
From cppreference.com
< cpp | filesystem | directory entry
| std::uintmax_t hard_link_count() const; |
(1) | (since C++17) |
| std::uintmax_t hard_link_count( std::error_code& ec ) const noexcept; |
(2) | (since C++17) |
If the number of hard links is cached in this directory_entry, returns the cached value. Otherwise, returns:
1) std::filesystem::hard_link_count(path()),
2) std::filesystem::hard_link_count(path(), ec).
Contents |