|
@@ -102,9 +102,9 @@ function getLastFile(dirPath, number, callback) {
|
|
|
let fileList = [];
|
|
|
|
|
|
|
|
|
- for (var i = fileList.length - 1; i >= 0; i--) {
|
|
|
- var file = fileList[i];
|
|
|
- logger.info(`--------02..00`, dirPath, file,i,fileList.length)
|
|
|
+ for (var i = files.length - 1; i >= 0; i--) {
|
|
|
+ var file = files[i];
|
|
|
+ logger.info(`--------02..00`, dirPath, file,i,files.length)
|
|
|
const filePath = path.join(dirPath, file);
|
|
|
const stats = await fs.promises.stat(filePath);
|
|
|
fileList.push({name: file, time: stats.mtimeMs});
|