MCPcopy Index your code
hub / github.com/billryan/algorithm-exercise / get_dir_file

Function get_dir_file

scripts/check_summary.py:14–24  ·  view source on GitHub ↗
(root_dir)

Source from the content-addressed store, hash-verified

12
13
14def 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
27def get_summary_dir_file(summary_md):

Callers 1

check_summary.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected