fs.rename是否覆盖文件(如果它已经存在)?
var fs = require('fs'),oldpath = 'firstfile.txt',newPath = 'temp/firstfile.txt'; fs.rename(oldpath,newPath,function (err) { console.log('rename callback ',err); });
如果“/newFolder/somefile.txt”存在,会发生什么?