Moved publicationFolder creation to Publication with Permissions

This commit is contained in:
2023-06-01 22:59:04 +02:00
parent 165bbc412e
commit 933df58712
3 changed files with 11 additions and 7 deletions

View File

@ -14,9 +14,7 @@ public class DownloadNewChaptersTask : TrangaTask
Connector connector = taskManager.GetConnector(this.connectorName);
//Check if Publication already has a Folder
string publicationFolder = Path.Join(connector.downloadLocation, pub.folderName);
if(!Directory.Exists(publicationFolder))
Directory.CreateDirectory(publicationFolder);
pub.CreatePublicationFolder(taskManager.settings.downloadLocation);
List<Chapter> newChapters = UpdateChapters(connector, pub, language!, ref taskManager.chapterCollection);
this.tasksCount = newChapters.Count;