|
@@ -113,7 +113,7 @@ function getLastFile(dirPath, number, callback) {
|
|
|
|
|
|
fileList.sort((a, b) => b.time - a.time);
|
|
|
for (a of fileList) {
|
|
|
- logger.info("排序之后的顺序:" + a.name + "\ttime:" + a.time)
|
|
|
+ logger.info("排序之后的顺序:"+dirPath+ + a.name + "\ttime:" + a.time)
|
|
|
}
|
|
|
lastFileList = fileList.slice(0, number != -1 ? number : fileList.length);
|
|
|
lastFileNameList = lastFileList.map((item) => item.name);
|