📅  最后修改于: 2022-03-11 15:01:10.686000             🧑  作者: Mango
var fs = require('fs');
fs.rename('sample_old.txt', 'sample_new.txt', function (err) {
if (err) throw err;
console.log('File Renamed.');
});