Skip to content

Commit a7ff0de

Browse files
committed
feat: update articles or snippets
1 parent 6fb3f38 commit a7ff0de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

33
const destDir =
4-
"/Users/zhangzixiong/Library/Containers/com.kingsoft.wpsoffice.mac/Data/Library/Application Support/Kingsoft/WPS Cloud Files/userdata/qing/filecache/27701737/联泰/财务、采购、公共关系/发票/2022/待报销/张梓雄/B1";
4+
"/Users/zhangzixiong/Library/Containers/com.kingsoft.wpsoffice.mac/Data/Library/Application Support/Kingsoft/WPS Cloud Files/userdata/qing/filecache/27701737/联泰/财务、采购、公共关系/发票/2022/待报销/张梓雄/B1/消费";
55

66
// const destDir =
77
// "/Users/zhangzixiong/Library/Containers/com.kingsoft.wpsoffice.mac/Data/Library/Application Support/Kingsoft/WPS Cloud Files/userdata/qing/filecache/27701737/联泰/财务、采购、公共关系/发票/2022/待分配";
88

99
const files = walkSync(destDir);
1010
let count = 0;
1111
const totalNum = files.reduce((prev, cur) => {
12-
const fileName = cur.split("/")[1];
12+
const fileName = cur.split("/")[0];
1313

1414
if (!fileName) {
1515
return prev;

0 commit comments

Comments
 (0)