diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6a4da61..8220ad9 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.70] - 2024-04-10
+### Added
+- Added symlink logging.
+
## [2.0.69] - 2024-04-09
### Added
- Added sorting to the GUI columns.
diff --git a/client/src/app/navbar/navbar.component.html b/client/src/app/navbar/navbar.component.html
index 61a9fce..37995ce 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.69
+ Version 2.0.70
diff --git a/package.json b/package.json
index f13f5f5..5eb1d56 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "rdt-client",
- "version": "2.0.69",
+ "version": "2.0.70",
"description": "This is a web interface to manage your torrents on Real-Debrid.",
"main": "index.js",
"dependencies": {
diff --git a/server/RdtClient.Service/Helpers/FileHelper.cs b/server/RdtClient.Service/Helpers/FileHelper.cs
index f717073..b6926be 100644
--- a/server/RdtClient.Service/Helpers/FileHelper.cs
+++ b/server/RdtClient.Service/Helpers/FileHelper.cs
@@ -1,4 +1,6 @@
-namespace RdtClient.Service.Helpers;
+using System.Text;
+
+namespace RdtClient.Service.Helpers;
public static class FileHelper
{
@@ -78,4 +80,29 @@ public static class FileHelper
{
return String.Concat(filename.Split(Path.GetInvalidFileNameChars()));
}
+
+ public static String GetDirectoryContents(String path)
+ {
+ var stringBuilder = new StringBuilder();
+ GetDirectoryContents(path, stringBuilder, "");
+ return stringBuilder.ToString();
+ }
+
+ private static void GetDirectoryContents(String path, StringBuilder stringBuilder, String indent)
+ {
+ var directoryInfo = new DirectoryInfo(path);
+
+ var directories = directoryInfo.GetDirectories();
+ foreach (var directory in directories)
+ {
+ stringBuilder.AppendLine($"{indent}{directory.Name}");
+ GetDirectoryContents(directory.FullName, stringBuilder, indent + " ");
+ }
+
+ var files = directoryInfo.GetFiles();
+ foreach (var file in files)
+ {
+ stringBuilder.AppendLine($"{indent}{file.Name}");
+ }
+ }
}
\ No newline at end of file
diff --git a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs
index ba2f058..cac910a 100644
--- a/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs
+++ b/server/RdtClient.Service/Services/Downloaders/SymlinkDownloader.cs
@@ -1,4 +1,5 @@
-using Serilog;
+using RdtClient.Service.Helpers;
+using Serilog;
namespace RdtClient.Service.Services.Downloaders;
@@ -82,6 +83,8 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
{
var potentialFilePathWithFileName = Path.Combine(potentialFilePath, fileName);
+ _logger.Debug($"Searching {potentialFilePathWithFileName}...");
+
if (File.Exists(potentialFilePathWithFileName))
{
file = new(potentialFilePathWithFileName);
@@ -101,6 +104,18 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
if (file == null)
{
+ _logger.Debug($"Unable to find file in rclone mount. Folders available in {rcloneMountPath}: ");
+ try
+ {
+ var allFolders = FileHelper.GetDirectoryContents(rcloneMountPath);
+
+ _logger.Debug(allFolders);
+ }
+ catch(Exception ex)
+ {
+ _logger.Error(ex.Message);
+ }
+
throw new("Could not find file from rclone mount!");
}
diff --git a/server/RdtClient.Web/RdtClient.Web.csproj b/server/RdtClient.Web/RdtClient.Web.csproj
index c44843a..ba2ed70 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.69
+ 2.0.70
enable
enable
latest