| 1644 | } |
| 1645 | |
| 1646 | uintmax_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 |
no test coverage detected