(root_dir)
| 12 | |
| 13 | |
| 14 | def get_dir_file(root_dir): |
| 15 | dir_file_list = [] |
| 16 | # level 1 |
| 17 | for l1 in os.listdir(root_dir): |
| 18 | level1 = os.path.join(root_dir, l1) |
| 19 | if os.path.isdir(level1) and l1 not in reserve_name: |
| 20 | for l2 in os.listdir(level1): |
| 21 | level2 = os.path.join(l1, l2) |
| 22 | dir_file_list.append(level2) |
| 23 | |
| 24 | return dir_file_list |
| 25 | |
| 26 | |
| 27 | def get_summary_dir_file(summary_md): |