MCPcopy Create free account
hub / github.com/PrismLauncher/PrismLauncher / hardLinkCount

Function hardLinkCount

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

Source from the content-addressed store, hash-verified

1635}
1636
1637uintmax_t hardLinkCount(const QString& path)
1638{
1639 std::error_code err;
1640 int count = fs::hard_link_count(StringUtils::toStdString(path), err);
1641 if (err) {
1642 qWarning() << "Failed to count hard links for" << path << ":" << QString::fromStdString(err.message());
1643 count = 0;
1644 }
1645 return count;
1646}
1647
1648#ifdef Q_OS_WIN
1649// 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