标签: node.js file watch
我正在使用fs.watch()方法检查文件的更改,但是我不知道如何检查何时完全下载了文件:
fs.watch(`./${IMAGES_FOLDER}/${filename}`, async (event, filename) => { }