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

Method getMTime

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

Source from the content-addressed store, hash-verified

21824 return Object.keys(this.inMemoryFiles).filter(filePath => filePath.startsWith(absolutePath) && !filePath.replace(absolutePath, "").includes("/"))
21825 }
21826 async getMTime(absolutePath) {
21827 if (isUrl(absolutePath)) {
21828 const cached = urlCache[absolutePath]
21829 return cached ? cached.timestamp : Date.now()
21830 }
21831 return 1
21832 }
21833 async getCTime(absolutePath) {
21834 if (isUrl(absolutePath)) {
21835 const cached = urlCache[absolutePath]

Callers

nothing calls this directly

Calls 1

isUrlFunction · 0.85

Tested by

no test coverage detected