MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / writeLogIn

Function writeLogIn

src/utils/__tests__/log-retention.test.ts:79–85  ·  view source on GitHub ↗
(targetLogDir: string, name: string, mtimeMs: number)

Source from the content-addressed store, hash-verified

77}
78
79function writeLogIn(targetLogDir: string, name: string, mtimeMs: number): string {
80 const filePath = path.join(targetLogDir, name);
81 writeFileSync(filePath, name);
82 const date = new Date(mtimeMs);
83 utimesSync(filePath, date, date);
84 return filePath;
85}
86
87function writeLog(name: string, mtimeMs: number): string {
88 return writeLogIn(logDir, name, mtimeMs);

Callers 2

writeLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected