MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / writeAllFiles

Method writeAllFiles

lib/compilers/pascal.ts:234–248  ·  view source on GitHub ↗
(dirPath: string, source: string, files: FiledataPair[])

Source from the content-addressed store, hash-verified

232 }
233
234 override async writeAllFiles(dirPath: string, source: string, files: FiledataPair[]) {
235 const inputFilename = path.join(dirPath, this.getMainSourceFilename(source));
236
237 if (source !== '' || !files) {
238 await fs.writeFile(inputFilename, source);
239 }
240
241 if (files && files.length > 0) {
242 await this.writeMultipleFiles(files, dirPath);
243 }
244
245 return {
246 inputFilename,
247 };
248 }
249
250 override async runCompiler(
251 compiler: string,

Callers 1

Calls 2

getMainSourceFilenameMethod · 0.95
writeMultipleFilesMethod · 0.45

Tested by

no test coverage detected