diff --git a/TwitchDownloaderCore/Services/CacheDirectoryService.cs b/TwitchDownloaderCore/Services/CacheDirectoryService.cs index 9dc5bbff..c9e4e4c9 100644 --- a/TwitchDownloaderCore/Services/CacheDirectoryService.cs +++ b/TwitchDownloaderCore/Services/CacheDirectoryService.cs @@ -13,6 +13,8 @@ public static string GetCacheDirectory([AllowNull] string baseDirectory) if (string.IsNullOrWhiteSpace(baseDirectory)) baseDirectory = Path.GetTempPath(); + baseDirectory = Path.GetFullPath(baseDirectory); + if (new DirectoryInfo(baseDirectory).Name == CACHE_DIRECTORY_SUFFIX) { return baseDirectory;