MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / find_end_files

Function find_end_files

custom_ops/setup_ops.py:182–191  ·  view source on GitHub ↗

Find files with end str in directory.

(directory, end_str)

Source from the content-addressed store, hash-verified

180
181
182def find_end_files(directory, end_str):
183 """
184 Find files with end str in directory.
185 """
186 gen_files = []
187 for root, dirs, files in os.walk(directory):
188 for file in files:
189 if file.endswith(end_str):
190 gen_files.append(os.path.join(root, file))
191 return gen_files
192
193
194if paddle.is_compiled_with_rocm():

Callers 1

setup_ops.pyFile · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected