Prevent creation of download folders when using the symlink downloader.
This commit is contained in:
parent
cc52f5f7f5
commit
078bbe4bfb
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue