Commit 6e7a8c29 authored by Agneska Slusarczyk's avatar Agneska Slusarczyk
Browse files

DDI: repair_ined_nesstar: add condition for ined to check either ddi name is on the list or not

parent 03850d16
......@@ -102,10 +102,21 @@ async function main() {
}
const { source: sourceDir, target: targetDir } = options
await fs.remove(targetDir)
await fs.ensureDir(targetDir)
/*
const inedtxtfile: string = await fs.readFile(path.join("../../public_data", "ined-liste-ddi.txt"), {
encoding: "utf8",
})
const inedListe = inedtxtfile.split('\n')
*/
for (const filename of await fs.readdir(sourceDir)) {
if (!filename.endsWith(".xml")) {
if (!filename.endsWith(".xml") /*&& inedListe.includes(filename.split(".")[0])*/) {
continue
}
const xml: string = await fs.readFile(path.join(sourceDir, filename), {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment