|
@@ -104,7 +104,7 @@ function getLastFile(dirPath, number, callback) {
|
|
|
// 按照倒叙获取,如果一个文件内容满足num,就不在继续查询,如果不够,继续获取文件
|
|
|
for (var i = fileList.length - 1; i >= 0; i--) {
|
|
|
var file = fileList[i];
|
|
|
- logger.info(`--------02..00`, dirPath, file)
|
|
|
+ logger.info(`--------02..00`, dirPath, file,i,fileList.length)
|
|
|
const filePath = path.join(dirPath, file);
|
|
|
const stats = await fs.promises.stat(filePath);
|
|
|
fileList.push({name: file, time: stats.mtimeMs});
|