Fixed a bad if statment that caused every EnsureCache() call to print cache doesn't exist, even though it does.

This commit is contained in:
Joseph Milazzo 2021-03-18 10:51:09 -05:00
parent 546f12c795
commit b8cd04e1de

View File

@ -32,7 +32,7 @@ namespace API.Services
public void EnsureCacheDirectory()
{
_logger.LogDebug("Checking if valid Cache directory: {CacheDirectory}", CacheDirectory);
if (_directoryService.ExistOrCreate(CacheDirectory))
if (!_directoryService.ExistOrCreate(CacheDirectory))
{
_logger.LogError("Cache directory {CacheDirectory} is not accessible or does not exist. Creating...", CacheDirectory);
}