Closed c708423 closed 6 years ago
After node v10.0.0 , fs.unlink The callback parameter is no longer optional. Not passing it will throw a TypeError at runtime. use fs.unlinkSync instead.
fs.unlink
fs.unlinkSync
.unlinkSync is a synchronize api. Pass empty function works same. (https://github.com/tencentyun/wafer2-node-sdk/commit/bdfd655881e1b4274ee71635ab04b6415945b62d)
.unlinkSync
After node v10.0.0 ,
fs.unlink
The callback parameter is no longer optional. Not passing it will throw a TypeError at runtime. usefs.unlinkSync
instead.