Fixed symlink path matching bug.
Some checks failed
Docker Image CI / build (push) Has been cancelled
Some checks failed
Docker Image CI / build (push) Has been cancelled
This commit is contained in:
parent
05dd562be1
commit
ed8637931d
5 changed files with 11 additions and 8 deletions
|
|
@ -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/),
|
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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [2.0.71] - 2024-04-10
|
||||||
|
### Changed
|
||||||
|
- Fixed symlink path matching bug.
|
||||||
|
|
||||||
## [2.0.70] - 2024-04-10
|
## [2.0.70] - 2024-04-10
|
||||||
### Added
|
### Added
|
||||||
- Added symlink logging.
|
- Added symlink logging.
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
<a class="navbar-item" routerLink="profile"> Profile </a>
|
<a class="navbar-item" routerLink="profile"> Profile </a>
|
||||||
<a class="navbar-item" (click)="logout()"> Logout </a>
|
<a class="navbar-item" (click)="logout()"> Logout </a>
|
||||||
<hr class="navbar-divider" />
|
<hr class="navbar-divider" />
|
||||||
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.70</a>
|
<a href="https://github.com/rogerfar/rdt-client" target="_blank" class="navbar-item">Version 2.0.71</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "rdt-client",
|
"name": "rdt-client",
|
||||||
"version": "2.0.70",
|
"version": "2.0.71",
|
||||||
"description": "This is a web interface to manage your torrents on Real-Debrid.",
|
"description": "This is a web interface to manage your torrents on Real-Debrid.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -48,15 +48,12 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
|
||||||
Speed = 0
|
Speed = 0
|
||||||
});
|
});
|
||||||
|
|
||||||
var potentialFilePaths = new List<String>
|
var potentialFilePaths = new List<String>();
|
||||||
{
|
|
||||||
Path.Combine(rcloneMountPath, fileName)
|
|
||||||
};
|
|
||||||
|
|
||||||
var directoryInfo = new DirectoryInfo(searchPath);
|
var directoryInfo = new DirectoryInfo(searchPath);
|
||||||
while (directoryInfo.Parent != null)
|
while (directoryInfo.Parent != null)
|
||||||
{
|
{
|
||||||
potentialFilePaths.Add(directoryInfo.FullName + @"\");
|
potentialFilePaths.Add(directoryInfo.FullName);
|
||||||
directoryInfo = directoryInfo.Parent;
|
directoryInfo = directoryInfo.Parent;
|
||||||
|
|
||||||
if (directoryInfo.FullName == rcloneMountPath)
|
if (directoryInfo.FullName == rcloneMountPath)
|
||||||
|
|
@ -65,6 +62,8 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
potentialFilePaths.Add(Path.Combine(rcloneMountPath, fileName));
|
||||||
|
|
||||||
FileInfo? file = null;
|
FileInfo? file = null;
|
||||||
|
|
||||||
for (var retryCount = 0; retryCount < MaxRetries; retryCount++)
|
for (var retryCount = 0; retryCount < MaxRetries; retryCount++)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
<UserSecretsId>94c24cba-f03f-4453-a671-3640b517c573</UserSecretsId>
|
||||||
<Version>2.0.70</Version>
|
<Version>2.0.71</Version>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue