| 1635 | } |
| 1636 | |
| 1637 | uintmax_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 |
no test coverage detected