24 lines
675 B
C#
Raw Normal View History

2023-08-12 19:08:38 +01:00
namespace LootDumpProcessor.Storage.Implementations.Handlers;
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";
}
}