Skip to content

Commit

Permalink
Root cache directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Dec 27, 2024
1 parent 173e56b commit f9cc31d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TwitchDownloaderCore/Services/CacheDirectoryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f9cc31d

Please sign in to comment.