fix(SymlinkDownloader): Add search path to potential file paths

This commit is contained in:
Sculas 2025-01-07 14:26:26 +01:00
parent ee9e80f7d2
commit 8fe277fa52
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -16,7 +16,7 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
public async Task<String> Download()
{
_logger.Debug($"Starting symlink resolving of {uri}, writing to path: {path}");
_logger.Debug($"Starting symlink resolving of {path} (uri = {uri}), writing to path: {destinationPath}");
try
{
@ -57,7 +57,7 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
Speed = 0
});
var potentialFilePaths = new List<String>();
var potentialFilePaths = new List<String> { searchPath };
var directoryInfo = new DirectoryInfo(searchPath);
while (directoryInfo.Parent != null)