MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / CollectAllFilesinPath

Function CollectAllFilesinPath

tools/targets/eclipse.py:91–107  ·  view source on GitHub ↗
(path, pattern)

Source from the content-addressed store, hash-verified

89
90
91def CollectAllFilesinPath(path, pattern):
92 files = []
93
94 for item in pattern:
95 files += glob.glob(path + '/' + item)
96
97 list = os.listdir(path)
98 if len(list):
99 for item in list:
100 if item.startswith('.'):
101 continue
102 if item == 'bsp':
103 continue
104
105 if os.path.isdir(os.path.join(path, item)):
106 files = files + CollectAllFilesinPath(os.path.join(path, item), pattern)
107 return files
108
109
110'''

Callers 1

GenExcludingFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected