From 6d4440de20d4548aadf911bd8fa73996b0066557 Mon Sep 17 00:00:00 2001 From: Mitchell Kelly Date: Sun, 4 Aug 2024 20:07:54 -0400 Subject: [PATCH] Fixed issue moving downloaded files in the base directory --- .../RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs index 08d3e15..9739d0f 100644 --- a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs +++ b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs @@ -73,6 +73,8 @@ public class SymlinkDownloader(String uri, String destinationPath, String path) potentialFilePaths.Add(fileName); potentialFilePaths.Add(fileNameWithoutExtension); + // add an empty path so we can check for the new file in the base directory + potentialFilePaths.Add(""); potentialFilePaths = potentialFilePaths.Distinct().ToList();