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

Function CollectFiles

tools/targets/eclipse.py:78–88  ·  view source on GitHub ↗
(paths, pattern)

Source from the content-addressed store, hash-verified

76
77
78def CollectFiles(paths, pattern):
79 files = []
80 for path in paths:
81 if type(pattern) == type(''):
82 files = files + glob.glob(path + '/' + pattern)
83 else:
84 for item in pattern:
85 # print('--> %s' % (path + '/' + item))
86 files = files + glob.glob(path + '/' + item)
87
88 return sorted(files)
89
90
91def CollectAllFilesinPath(path, pattern):

Callers 1

GenExcludingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected