Quietly ignore ELI symlinks
This commit is contained in:
parent
ad96dacf54
commit
abd9b00e59
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue