trying to fix Unix stat

This commit is contained in:
Flaminel
2025-02-21 14:24:31 +02:00
parent 017e25fb06
commit 2d6f16692c
3 changed files with 22 additions and 17 deletions
@@ -327,7 +327,16 @@ public class QBitService : DownloadService, IQBitService
return;
}
if (_hardlinkFileService.GetHardLinkCount(file.Name) > 1)
ulong hardlinkCount = _hardlinkFileService.GetHardLinkCount(file.Name);
if (hardlinkCount is 0)
{
_logger.LogDebug("skip | could not get file properties | {name}", download.Name);
hasHardlinks = true;
break;
}
if (hardlinkCount > 1)
{
hasHardlinks = true;
};