1
0
mirror of https://github.com/C9Glax/tranga.git synced 2025-04-20 23:33:18 +02:00

Path.join joins paths ya know

This commit is contained in:
glax 2023-05-26 14:51:11 +02:00
parent c547aa6422
commit 81638f4b4a

@ -283,7 +283,7 @@ public class MangaDex : Connector
}
string fileInCache = Path.Join(settings.coverImageCache, publication.coverFileNameInCache);
string newFilePath = Path.Join(publicationFolder, "cover.", Path.GetFileName(fileInCache).Split('.')[^1]);
string newFilePath = Path.Join(publicationFolder, $"cover.{Path.GetFileName(fileInCache).Split('.')[^1]}" );
logger?.WriteLine(this.GetType().ToString(), $"Cloning cover {fileInCache} -> {newFilePath}");
File.Copy(fileInCache, newFilePath, true);
logger?.WriteLine(this.GetType().ToString(), $"Done cloning cover {publication.sortName}");