fixed a edge case bug where existence check would succed even when it shouldnt when using the trie
This commit is contained in:
parent
6efed770d0
commit
9df1547fce
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user