MCPcopy Index your code
hub / github.com/anomalyco/opencode / modifiedAt

Function modifiedAt

packages/opencode/src/plugin/meta.ts:62–67  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

60}
61
62async function modifiedAt(file: string) {
63 const stat = await Filesystem.statAsync(file)
64 if (!stat) return
65 const mtime = stat.mtimeMs
66 return Math.floor(typeof mtime === "bigint" ? Number(mtime) : mtime)
67}
68
69function resolvedTarget(target: string) {
70 if (target.startsWith("file://")) return fileURLToPath(target)

Callers 1

entryCoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected