var path = filepath.replace(settings.url, ‘web/upload/images/’);
console.log(‘path:’, path);
fs.unlink(path, function (err) {
if (err) {
console.log(err);
return cbError(‘50003’, Me.cb);
}
else {
Me.cb(200, null, “”);
}
})
node 删除文件的写法
最新推荐文章于 2023-01-31 12:04:08 发布