File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dd-search-engine/sg-index-doc/src/cli Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import * as walkSync from "walk-sync" ;
22
33const 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
99const files = walkSync ( destDir ) ;
1010let count = 0 ;
1111const totalNum = files . reduce ( ( prev , cur ) => {
12- const fileName = cur . split ( "/" ) [ 1 ] ;
12+ const fileName = cur . split ( "/" ) [ 0 ] ;
1313
1414 if ( ! fileName ) {
1515 return prev ;
You can’t perform that action at this time.
0 commit comments