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.

20 lines
680 B

7 days ago
# -*- coding: utf-8 -*-
"""票 12 bruno-sync 侦察:列出 docs 仓商机管理目录树 + 详情子域文件夹现状。"""
import io
import sys
from pathlib import Path
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
root = Path('D:/code/crm-api-docs')
print('顶层:', [p.name for p in root.iterdir() if p.is_dir()])
sj = root / '商机管理'
if sj.exists():
print('商机管理/:', [p.name for p in sj.iterdir()])
for sub in 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)