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