Prevent creation of download folders when using the symlink downloader.

This commit is contained in:
Roger Far 2024-09-02 21:08:00 -06:00
parent cc52f5f7f5
commit 078bbe4bfb

View file

@ -1,4 +1,5 @@
using System.Web;
using RdtClient.Data.Enums;
using RdtClient.Data.Models.Data;
namespace RdtClient.Service.Helpers;
@ -41,7 +42,7 @@ public static class DownloadHelper
}
}
if (!Directory.Exists(torrentPath))
if (torrent.DownloadClient != DownloadClient.Symlink && !Directory.Exists(torrentPath))
{
Directory.CreateDirectory(torrentPath);
}
@ -85,7 +86,7 @@ public static class DownloadHelper
}
}
if (!Directory.Exists(torrentPath))
if (torrent.DownloadClient != DownloadClient.Symlink && !Directory.Exists(torrentPath))
{
Directory.CreateDirectory(torrentPath);
}