|
@@ -101,9 +101,9 @@ function getLastFile(dirPath, number, callback) {
|
|
let fileList = [];
|
|
let fileList = [];
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
for (file of files) {
|
|
for (file of files) {
|
|
const filePath = path.join(dirPath, file);
|
|
const filePath = path.join(dirPath, file);
|
|
|
|
+ logger.info("所有文件:",file)
|
|
const stats = await fs.promises.stat(filePath);
|
|
const stats = await fs.promises.stat(filePath);
|
|
if (stats.isFile()) {
|
|
if (stats.isFile()) {
|
|
fileList.push({name: file, time: stats.birthtime.getTime()});
|
|
fileList.push({name: file, time: stats.birthtime.getTime()});
|