Add phase 1 critical import tool
This commit is contained in:
19
src/RolemasterDb.ImportTool/ImportArtifactPaths.cs
Normal file
19
src/RolemasterDb.ImportTool/ImportArtifactPaths.cs
Normal 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"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user