#28 is a pain in the buttcheeks
This commit is contained in:
parent
f9f802155d
commit
d80980512e
@ -284,8 +284,8 @@ public class MangaDex : Connector
|
|||||||
|
|
||||||
string fileInCache = Path.Join(settings.coverImageCache, publication.coverFileNameInCache);
|
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]);
|
||||||
if(File.Exists(fileInCache) && !File.Exists(newFilePath))
|
logger?.WriteLine(this.GetType().ToString(), $"Cloning cover {fileInCache} -> {newFilePath}");
|
||||||
File.Copy(fileInCache, newFilePath);
|
File.Copy(fileInCache, newFilePath, true);
|
||||||
logger?.WriteLine(this.GetType().ToString(), $"Done cloning cover {publication.sortName}");
|
logger?.WriteLine(this.GetType().ToString(), $"Done cloning cover {publication.sortName}");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user