diff --git a/src/scripts/import_jorf.ts b/src/scripts/import_jorf.ts index d4e66ca..bda6cdf 100644 --- a/src/scripts/import_jorf.ts +++ b/src/scripts/import_jorf.ts @@ -185,6 +185,13 @@ async function importJorf( const filePath = path.join(dataDir, relativePath) if (!filePath.endsWith(".xml")) { + if ( + filePath.includes("/eli/") && + (await fs.lstat(filePath)).isSymbolicLink() + ) { + // Ignore ELI symbolic links, because the name of the link is present in TexteVersion. + continue + } console.info(`Skipping non XML file at ${filePath}`) continue } diff --git a/src/scripts/import_legi.ts b/src/scripts/import_legi.ts index 88609bf..f1e1d84 100644 --- a/src/scripts/import_legi.ts +++ b/src/scripts/import_legi.ts @@ -170,6 +170,13 @@ async function importLegi( const filePath = path.join(dataDir, relativePath) if (!filePath.endsWith(".xml")) { + if ( + filePath.includes("/eli/") && + (await fs.lstat(filePath)).isSymbolicLink() + ) { + // Ignore ELI symbolic links, because the name of the link is present in TexteVersion. + continue + } console.info(`Skipping non XML file at ${filePath}`) continue }