std::filesystem::hard_link_count (3) Linux Manual Page
std::filesystem::hard_link_count – std::filesystem::hard_link_count Synopsis Defined in header<filesystem> std::uintmax_t hard_link_count(const std::filesystem::path &p); std::uintmax_t hard_link_count(const std::filesystem::path &p, (1)(since C++ 17) std::error_code &ec) noexcept; Returns the number of hard links for the filesystem object identified by path p. The non-throwing overload returns static_cast<uintmax_t>(-1) on errors. Parameters p – path to examine ec – out-parameter for error reporting in…
