From 78d8deb9de0c1d2fb5238f2b0ca923db92439e3b Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 19 May 2023 23:00:45 +0200 Subject: [PATCH] Properly create directory, not file, ya doofus --- Tranga/Connector.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tranga/Connector.cs b/Tranga/Connector.cs index 32202bf..6b55450 100644 --- a/Tranga/Connector.cs +++ b/Tranga/Connector.cs @@ -100,9 +100,7 @@ public abstract class Connector return; //Create a temporary folder to store images - string tempFolder = Path.GetTempFileName(); - File.Delete(tempFolder); - Directory.CreateDirectory(tempFolder); + string tempFolder = Directory.CreateTempSubdirectory().FullName; int chapter = 0; //Download all Images to temporary Folder