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

Function find_files

selenium/deploy.py:17–29  ·  view source on GitHub ↗

查找满足pattern的文件

(pattern, path)

Source from the content-addressed store, hash-verified

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

Callers 2

deploy_eggFunction · 0.70
cleanFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected