fixed a edge case bug where existence check would succed even when it shouldnt when using the trie

This commit is contained in:
apex 2025-06-28 13:15:10 -04:00
parent 6efed770d0
commit 9df1547fce

View File

@ -21,7 +21,7 @@ reader.on('line', (line) => {
let entry = JSON.parse(line); let entry = JSON.parse(line);
let thispath = path + getPath(entry.word) + entry.pos + "/"; let thispath = path + getPath(entry.word) + entry.pos + "/";
console.log(thispath); console.log(thispath);
if (!fs.existsSync(thispath)) { if (!fs.existsSync(thispath + "definitions.json")) {
initializeDir(thispath); initializeDir(thispath);
} }
// console.log(entry); // console.log(entry);