MCPcopy Create free account
hub / github.com/cxapython/catvm / find_files

Function find_files

selenium/deploy_aws.py:18–30  ·  view source on GitHub ↗

查找满足pattern的文件

(pattern, path)

Source from the content-addressed store, hash-verified

16
17
18def find_files(pattern, path):
19 '''
20 查找满足pattern的文件
21 '''
22 result = []
23 for root, dirs, files in os.walk(path):
24 for name in files:
25 if fnmatch.fnmatch(name, pattern):
26 result.append(os.path.join(root, name))
27 for name in dirs:
28 if fnmatch.fnmatch(name, pattern):
29 result.append(os.path.join(root, name))
30 return result
31
32
33def get_commit_id():

Callers 2

deploy_eggFunction · 0.70
cleanFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected