refactored hardlink service

This commit is contained in:
Flaminel
2025-02-21 23:57:43 +02:00
parent 029f255351
commit 8c8d412ef1
6 changed files with 175 additions and 129 deletions
@@ -343,9 +343,9 @@ public class QBitService : DownloadService, IQBitService
: download.SavePath, file.Name
);
ulong hardlinkCount = _hardlinkFileService.GetHardLinkCount(filePath, _downloadCleanerConfig.IgnoreRootDir);
long hardlinkCount = _hardlinkFileService.GetHardLinkCount(filePath, _downloadCleanerConfig.IgnoreRootDir);
if (hardlinkCount is 0)
if (hardlinkCount < 0)
{
_logger.LogDebug("skip | could not get file properties | {name}", download.Name);
hasHardlinks = true;