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