ruifeng_liu 3 years ago
parent
commit
a8e0653600
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/patent/patentwarning.js

+ 1 - 1
app/service/patent/patentwarning.js

@@ -226,7 +226,7 @@ class PatentwarningService extends CrudService {
     const files = fs.readdirSync(filePath);
     let result = [];
     for (const file of files) {
-      const curPath = `${filePath}${sep}${file}`;
+      const curPath = `${_.trimEnd(filePath)}${sep}${file}`;
       if (fs.statSync(curPath).isDirectory()) {
         const res = await this.findFileNameLoop(curPath, file);
         result.push(...res);