MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / get_existing_files_content

Function get_existing_files_content

file_utils.py:132–142  ·  view source on GitHub ↗
(build_folder, existing_files)

Source from the content-addressed store, hash-verified

130
131
132def get_existing_files_content(build_folder, existing_files):
133 existing_files_content = {}
134 for file_name in existing_files:
135 with open(os.path.join(build_folder, file_name), "rb") as f:
136 content = f.read()
137 try:
138 existing_files_content[file_name] = content.decode("utf-8")
139 except UnicodeDecodeError:
140 console.debug(f"WARNING! Error loading {file_name}. File is not a text file. Skipping it.")
141
142 return existing_files_content
143
144
145def store_response_files(target_folder, response_files, existing_files):

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected