Skip to content

Commit fc7448c

Browse files
committed
feat: update articles or snippets
1 parent 570a904 commit fc7448c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dd-search-engine/sg-index-doc/src/cli/calc-sum.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import * as walkSync from "walk-sync";
22

3-
const destDir = "/Users/zhangzixiong/Desktop/UT/docs/发票";
3+
const destDir =
4+
"/Users/zhangzixiong/Library/Containers/com.kingsoft.wpsoffice.mac/Data/Library/Application Support/Kingsoft/WPS Cloud Files/userdata/qing/filecache/27701737/联泰/财务、采购、公共关系/发票";
45

56
const files = walkSync(destDir);
67

78
console.log(
89
files.reduce((prev, cur) => {
9-
const fileName = cur.split("/")[1];
10+
const fileName = cur.split("/")[2];
1011

11-
if (!fileName) {
12+
if (!fileName || !fileName.endsWith("pdf")) {
1213
return prev;
1314
}
1415

0 commit comments

Comments
 (0)