You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
514 B
18 lines
514 B
|
6 days ago
|
# -*- coding: utf-8 -*-
|
||
|
|
"""票 12 bruno-sync 侦察:商机模块树 + 各页 .bru 数。"""
|
||
|
|
import io
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
|
||
|
|
|
||
|
|
sj = Path('D:/code/crm-api-docs/商机模块')
|
||
|
|
for sub in sorted(sj.iterdir()):
|
||
|
|
if sub.is_dir():
|
||
|
|
brus = sorted(p.name for p in sub.glob('*.bru'))
|
||
|
|
print(f'{sub.name}/ ({len(brus)} .bru)')
|
||
|
|
for n in brus:
|
||
|
|
print(' ', n)
|
||
|
|
else:
|
||
|
|
print(f'{sub.name} <file>')
|