From d993cd30a76ae507e805375b9a693fac0f3b3e8d Mon Sep 17 00:00:00 2001 From: Flaminel Date: Mon, 24 Mar 2025 15:51:00 +0200 Subject: [PATCH] qbit test --- .../Verticals/DownloadClient/QBittorrent/QBitService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs b/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs index 8fc0994..ccac631 100644 --- a/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs +++ b/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs @@ -394,11 +394,16 @@ public class QBitService : DownloadService, IQBitService return; } + var ceva = Path.Combine(download.ContentPath, file.Name); + var ceva2 = Path.Combine(download.SavePath, file.Name); + string filePath = Path.Combine(Directory.Exists(download.ContentPath) ? download.ContentPath : download.SavePath, file.Name ); + filePath = string.Join(Path.DirectorySeparatorChar, Path.Combine(download.SavePath, file.Name).Split(['\\', '/'])); // TODO + // TODO add config for root directory long hardlinkCount = _hardLinkFileService.GetHardLinkCount(filePath, _downloadCleanerConfig.NoHardLinksIgnoreRootDir); if (hardlinkCount < 0)