From 16c1b5c50609199590a4c653e579d36f5c03e363 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 31 May 2023 21:39:18 +0200 Subject: [PATCH] Create imageCacheFolder --- Tranga/Connector.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tranga/Connector.cs b/Tranga/Connector.cs index 705e5db..932bfb5 100644 --- a/Tranga/Connector.cs +++ b/Tranga/Connector.cs @@ -27,6 +27,8 @@ public abstract class Connector //RequestTypes for RateLimits }, logger); this.imageCachePath = imageCachePath; + if (!Directory.Exists(imageCachePath)) + Directory.CreateDirectory(this.imageCachePath); } public abstract string name { get; } //Name of the Connector (e.g. Website)