mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
rebuild filescanner to use threads instead of tasks for the periodic scan, change alternative file upload to be a munged file upload
This commit is contained in:
parent
0008428cb0
commit
afb7800d20
6 changed files with 115 additions and 81 deletions
|
|
@ -275,7 +275,10 @@ public sealed class FileCacheManager : IDisposable
|
|||
_fileCaches[fileCache.Hash] = entries = new();
|
||||
}
|
||||
|
||||
entries.Add(fileCache);
|
||||
if (!entries.Exists(u => string.Equals(u.PrefixedFilePath, fileCache.PrefixedFilePath, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
entries.Add(fileCache);
|
||||
}
|
||||
}
|
||||
|
||||
private FileCacheEntity? CreateFileCacheEntity(FileInfo fileInfo, string prefixedPath, string? hash = null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue