MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / hardLinkCount

Function hardLinkCount

launcher/FileSystem.cpp:1646–1655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1644}
1645
1646uintmax_t hardLinkCount(const QString& path)
1647{
1648 std::error_code err;
1649 int count = fs::hard_link_count(StringUtils::toStdString(path), err);
1650 if (err) {
1651 qWarning() << "Failed to count hard links for" << path << ":" << QString::fromStdString(err.message());
1652 count = 0;
1653 }
1654 return count;
1655}
1656
1657#ifdef Q_OS_WIN
1658// returns 8.3 file format from long path

Callers 2

isMoreThanOneHardLinkMethod · 0.85
isMoreThanOneHardLinkMethod · 0.85

Calls 2

toStdStringFunction · 0.85
fromStdStringFunction · 0.85

Tested by

no test coverage detected