From d5aaad866b6c2221d0b3b6f7db7bcc02de07375a Mon Sep 17 00:00:00 2001 From: Roger Versluis Date: Wed, 24 Apr 2024 07:29:02 -0600 Subject: [PATCH] Fixed broken symlink recursive searching. --- CHANGELOG.md | 4 ++++ client/src/app/navbar/navbar.component.html | 2 +- package.json | 2 +- .../Services/Downloaders/SymlinkDownloader.cs | 7 ++++++- server/RdtClient.Web/RdtClient.Web.csproj | 2 +- server/RdtClient.sln.DotSettings | 3 +++ 6 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bc8124..6d136d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.75] - 2024-04-24 +### Changed +- Fixed broken recursive symlink searching. + ## [2.0.74] - 2024-04-20 ### Added - Added support for symlink recursive searching. diff --git a/client/src/app/navbar/navbar.component.html b/client/src/app/navbar/navbar.component.html index 824f996..39f028f 100644 --- a/client/src/app/navbar/navbar.component.html +++ b/client/src/app/navbar/navbar.component.html @@ -55,7 +55,7 @@ Profile Logout - Version 2.0.74 + Version 2.0.75 diff --git a/package.json b/package.json index 9ecae09..4c7163b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rdt-client", - "version": "2.0.74", + "version": "2.0.75", "description": "This is a web interface to manage your torrents on Real-Debrid.", "main": "index.js", "dependencies": { diff --git a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs index 5353a58..184c63b 100644 --- a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs +++ b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs @@ -98,7 +98,12 @@ public class SymlinkDownloader(String uri, String destinationPath, String path) foreach (var subDirectory in subDirectories) { - FindFile(Path.Combine(rcloneMountPath, subDirectory), potentialFilePaths, fileName); + file = FindFile(Path.Combine(rcloneMountPath, subDirectory), potentialFilePaths, fileName); + + if (file != null) + { + break; + } } } diff --git a/server/RdtClient.Web/RdtClient.Web.csproj b/server/RdtClient.Web/RdtClient.Web.csproj index 71949ba..526e095 100644 --- a/server/RdtClient.Web/RdtClient.Web.csproj +++ b/server/RdtClient.Web/RdtClient.Web.csproj @@ -4,7 +4,7 @@ net8.0 Exe 94c24cba-f03f-4453-a671-3640b517c573 - 2.0.74 + 2.0.75 enable enable latest diff --git a/server/RdtClient.sln.DotSettings b/server/RdtClient.sln.DotSettings index 5267e9a..b248b47 100644 --- a/server/RdtClient.sln.DotSettings +++ b/server/RdtClient.sln.DotSettings @@ -190,6 +190,8 @@ Aria2c <Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /> <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Protected, ProtectedInternal, Internal, Public, PrivateProtected" Description="Constant fields (not private)"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></Policy> + <Policy><Descriptor Staticness="Any" AccessRightKinds="Any" Description="Local constants"><ElementKinds><Kind Name="LOCAL_CONSTANT" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></Policy> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> @@ -202,4 +204,5 @@ True True True + True \ No newline at end of file