From e03adade0ebf90895520228b92cb05e7835d2819 Mon Sep 17 00:00:00 2001 From: Arnau Villoslada <13028916+avillp@users.noreply.github.com> Date: Thu, 5 Sep 2024 23:58:43 +0200 Subject: [PATCH] Re-introduce my own fix since rogerfar one is not working --- .../Services/Downloaders/SymlinkDownloader.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs index 85ecef6..d730d74 100644 --- a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs +++ b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs @@ -80,7 +80,11 @@ public class SymlinkDownloader(String uri, String destinationPath, String path) _logger.Debug($"Searching {rcloneMountPath} for {fileName} (attempt #{retryCount})..."); - file = FindFile(rcloneMountPath, potentialFilePaths, fileName); + file = FindFile(rcloneMountPath, potentialFilePaths, ""); + if (file == null) + { + file = FindFile(rcloneMountPath, potentialFilePaths, fileName); + } if (file == null && searchSubDirectories) {