fix issue when penumbra mod folder contains a part of the path of cache folder

This commit is contained in:
Stanley Dimant 2022-09-25 20:51:03 +02:00
parent 9142b2bee4
commit afb1cf1429
5 changed files with 29 additions and 19 deletions

View file

@ -211,7 +211,8 @@ public class PeriodicFileScanner : IDisposable
{
if (ct.IsCancellationRequested) return;
_ = _fileDbManager.CreateFileCacheEntity(file.Key);
var entry = _fileDbManager.CreateFileEntry(file.Key);
if (entry == null) _ = _fileDbManager.CreateCacheEntry(file.Key);
Interlocked.Increment(ref currentFileProgress);
});