As such situation may occur that each folder under cookbook folder can include several json files, the current code fs.copyFileSync() in etu.js may fail to run.
Hence, I suggest traversing directory rather than string concatenation.
See also: Node.js: Traversing A Directory Recursively with Limited Depth.
As such situation may occur that each folder under cookbook folder can include several json files, the current code
fs.copyFileSync()
in etu.js may fail to run. Hence, I suggest traversing directory rather than string concatenation. See also: Node.js: Traversing A Directory Recursively with Limited Depth.