MCPcopy Create free account
hub / github.com/dobin/SuperMega / list_files

Function list_files

app/views_project.py:162–169  ·  view source on GitHub ↗
(directory, prepend="")

Source from the content-addressed store, hash-verified

160
161
162def list_files(directory, prepend="") -> List[str]:
163 files = []
164 for filename in os.listdir(directory):
165 filepath = os.path.join(directory, filename)
166 if os.path.isfile(filepath):
167 filename = filename.replace(".c", "")
168 files.append(filename)
169 return files
170
171
172@views_project.route("/project_add", methods=['POST', 'GET'])

Callers 1

projectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected