Munge block files on disk (#57)

* Munge block files on disk

* Simplify
This commit is contained in:
N. Lo
2023-08-06 02:36:32 +02:00
committed by GitHub
parent 725e98fb47
commit dcf072e00b
2 changed files with 29 additions and 8 deletions

View File

@@ -120,9 +120,9 @@ public sealed class FileCacheManager : IDisposable
public List<FileCacheEntity> GetAllFileCaches() => _fileCaches.Values.SelectMany(v => v).ToList();
public string GetCacheFilePath(string hash, string extension, bool isTemporaryFile)
public string GetCacheFilePath(string hash, string extension)
{
return Path.Combine(_configService.Current.CacheFolder, hash + "." + extension + (isTemporaryFile ? ".tmp" : string.Empty));
return Path.Combine(_configService.Current.CacheFolder, hash + "." + extension);
}
public FileCacheEntity? GetFileCacheByHash(string hash)