现在我用
fs.openSync(filepath, 'a')
但这有点棘手.是否有一种在Node.js中创建空文件的"标准"方法?
filesystems node.js
filesystems ×1
node.js ×1