|
@@ -218,7 +218,7 @@ class PatentwarningService extends CrudService {
|
|
|
* @param {String} fileName 文件名
|
|
|
*/
|
|
|
async findFileNameLoop(uri, fileName) {
|
|
|
- const filePath = `${_.trimEnd(uri)}${sep}${fileName}`;
|
|
|
+ const filePath = `${_.trimEnuri}${sep}${fileName}`;
|
|
|
if (!fs.existsSync(filePath)) {
|
|
|
return [];
|
|
|
}
|
|
@@ -227,7 +227,7 @@ class PatentwarningService extends CrudService {
|
|
|
for (const file of files) {
|
|
|
console.log(filePath);
|
|
|
console.log(file);
|
|
|
- const curPath = `${_.trimEnd(filePath)}${sep}${file}`;
|
|
|
+ const curPath = `${_.trimEnd(filePath, sep)}${sep}${file}`;
|
|
|
if (fs.statSync(curPath).isDirectory()) {
|
|
|
const res = await this.findFileNameLoop(curPath, file);
|
|
|
result.push(...res);
|