var readStream = fs.createReadStream(fromFilePath); readStream.pipe(fs.createWriteStream(toFilePath));
问题是如何像常规文件复制命令一样复制/保留修改时间(mtime).
var stat = fs.statSync(fromFilePath); fs.utimesSync(toFilePath,stat.atime,stat.mtime)