diff --git a/TwitchDownloaderCore/TwitchHelper.cs b/TwitchDownloaderCore/TwitchHelper.cs index 7ec093d8..9c78ceaa 100644 --- a/TwitchDownloaderCore/TwitchHelper.cs +++ b/TwitchDownloaderCore/TwitchHelper.cs @@ -865,7 +865,8 @@ where comments public static FileInfo ClaimFile(string path, Func fileAlreadyExistsCallback, ITaskLogger logger) { - var fileInfo = new FileInfo(path); + var fullPath = Path.GetFullPath(path); + var fileInfo = new FileInfo(fullPath); if (fileInfo.Exists) { if (fileAlreadyExistsCallback is null) @@ -882,9 +883,9 @@ public static FileInfo ClaimFile(string path, Func fileAlrea throw new FileNotFoundException("No destination file was provided, aborting."); } - if (path != fileInfo.FullName) + if (fullPath != fileInfo.FullName) { - logger.LogInfo($"'{path}' will be renamed to '{fileInfo.FullName}'"); + logger.LogInfo($"'{fullPath}' will be renamed to '{fileInfo.FullName}'"); } } }