|
@@ -98,11 +98,13 @@ function getLastFile(dirPath, number, callback) {
|
|
|
logger.error(`无法列出目录。`, err);
|
|
|
// process.exit(1);
|
|
|
} else {
|
|
|
- logger.info(`--------02`,files)
|
|
|
+ logger.info(`--------02`,files,dirPath)
|
|
|
let fileList = [];
|
|
|
for (file of files) {
|
|
|
const filePath = path.join(dirPath, file);
|
|
|
+ logger.info(`--------02..111`,filePath)
|
|
|
const stats = await fs.promises.stat(filePath);
|
|
|
+ logger.info(`--------02..22222`,stats)
|
|
|
fileList.push({name: file, time: stats.mtimeMs});
|
|
|
}
|
|
|
logger.info(`--------03`)
|