MCPcopy Create free account
hub / github.com/breck7/scroll / getMTime

Method getMTime

external/.scrollLibs.js:21756–21763  ·  view source on GitHub ↗
(absolutePath)

Source from the content-addressed store, hash-verified

21754 Disk.writeIfChanged(fullPath, content)
21755 }
21756 async getMTime(absolutePath) {
21757 if (isUrl(absolutePath)) {
21758 const cached = urlCache[absolutePath]
21759 return cached ? cached.timestamp : Date.now()
21760 }
21761 const file = await this._read(absolutePath)
21762 return file.stats.mtimeMs
21763 }
21764 async getCTime(absolutePath) {
21765 if (isUrl(absolutePath)) {
21766 const cached = urlCache[absolutePath]

Callers 1

getMTimeMethod · 0.45

Calls 2

_readMethod · 0.95
isUrlFunction · 0.85

Tested by

no test coverage detected