diff --git a/gendictionary.js b/gendictionary.js index e02f6fe..0446a63 100644 --- a/gendictionary.js +++ b/gendictionary.js @@ -21,7 +21,7 @@ reader.on('line', (line) => { let entry = JSON.parse(line); let thispath = path + getPath(entry.word) + entry.pos + "/"; console.log(thispath); - if (!fs.existsSync(thispath)) { + if (!fs.existsSync(thispath + "definitions.json")) { initializeDir(thispath); } // console.log(entry);