chomp 6e4c7abf73 dump-processor-cleanup (#6)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
Reviewed-on: SPT-AKI/LootDumpProcessor#6
2024-04-16 18:29:40 +00:00

26 lines
719 B
C#

namespace LootDumpProcessor.Storage.Implementations.File.Handlers;
public class SubdivisionedStoreHandler : AbstractStoreHandler
{
public override List<T> RetrieveAll<T>()
{
throw new NotImplementedException();
}
protected override string GetLocation(IKey key)
{
var location = $"{GetBaseLocation()}/{string.Join("/",key.GetLookupIndex().SkipLast(1))}";
if (!Directory.Exists(location))
{
Directory.CreateDirectory(location);
}
return $"{location}/{key.GetLookupIndex().Last()}.{_serializer.GetExtension()}";
}
protected override string GetBaseLocation()
{
return $"{base.GetBaseLocation()}/subdivisioned";
}
}