Add phase 1 critical import tool

This commit is contained in:
2026-03-14 01:10:44 +01:00
parent 44af81cc38
commit f70d610c92
25 changed files with 851 additions and 166 deletions

View File

@@ -0,0 +1,19 @@
namespace RolemasterDb.ImportTool;
public sealed class ImportArtifactPaths
{
private ImportArtifactPaths(string directoryPath, string extractedTextPath)
{
DirectoryPath = directoryPath;
ExtractedTextPath = extractedTextPath;
}
public string DirectoryPath { get; }
public string ExtractedTextPath { get; }
public static ImportArtifactPaths Create(string artifactsRootPath, string tableSlug)
{
var directoryPath = Path.Combine(artifactsRootPath, tableSlug);
return new ImportArtifactPaths(directoryPath, Path.Combine(directoryPath, "extracted.txt"));
}
}