2024-04-16 18:29:40 +00:00
|
|
|
namespace LootDumpProcessor.Storage.Implementations.File.Handlers;
|
2023-08-12 19:08:38 +01:00
|
|
|
|
|
|
|
public class FlatStoreHandler : AbstractStoreHandler
|
|
|
|
{
|
|
|
|
public override List<T> RetrieveAll<T>()
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
protected override string GetLocation(IKey key)
|
|
|
|
{
|
|
|
|
var baseLocation = GetBaseLocation();
|
|
|
|
if (!Directory.Exists(baseLocation))
|
|
|
|
{
|
|
|
|
Directory.CreateDirectory(baseLocation);
|
|
|
|
}
|
|
|
|
|
|
|
|
return $"{baseLocation}/{string.Join("-", key.GetLookupIndex())}.{_serializer.GetExtension()}";
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override string GetBaseLocation()
|
|
|
|
{
|
|
|
|
return $"{base.GetBaseLocation()}/flat";
|
|
|
|
}
|
|
|
|
}
|