MCPcopy
hub / github.com/codeaashu/claude-code / mtimeOrUndefined

Function mtimeOrUndefined

src/utils/deepLink/banner.ts:104–111  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

102}
103
104async function mtimeOrUndefined(p: string): Promise<Date | undefined> {
105 try {
106 const { mtime } = await stat(p)
107 return mtime
108 } catch {
109 return undefined
110 }
111}
112
113/**
114 * Shorten home-dir-prefixed paths to ~ notation for the banner.

Callers 1

readLastFetchTimeFunction · 0.85

Calls 1

statFunction · 0.85

Tested by

no test coverage detected