MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / tryMtimeSync

Function tryMtimeSync

src/shared/vscode/pub.ts:173–173  ·  view source on GitHub ↗
(f: string)

Source from the content-addressed store, hash-verified

171
172 // Helpers for Date/Paths so that output is complete for production, but simplified for tests.
173 const tryMtimeSync = (f: string) => { try { return mtimeSync(f); } catch { return undefined; } };
174 const maybeDate = includeDatesAndFullPaths
175 ? (d: Date) => ` (${d})`
176 : (_: Date) => "";

Callers 1

getPubPackageStatusFunction · 0.85

Calls 1

mtimeSyncFunction · 0.85

Tested by

no test coverage detected