MCPcopy
hub / github.com/Kong/insomnia / utimes

Function utimes

packages/insomnia/bin/yarn-standalone.js:46027–46037  ·  view source on GitHub ↗
(name, header, cb)

Source from the content-addressed store, hash-verified

46025 }
46026
46027 var utimes = function (name, header, cb) {
46028 if (opts.utimes === false) return cb()
46029
46030 if (header.type === 'directory') return xfs.utimes(name, now, header.mtime, cb)
46031 if (header.type === 'symlink') return utimesParent(name, cb) // TODO: how to set mtime on link?
46032
46033 xfs.utimes(name, now, header.mtime, function (err) {
46034 if (err) return cb(err)
46035 utimesParent(name, cb)
46036 })
46037 }
46038
46039 var chperm = function (name, header, cb) {
46040 var link = header.type === 'symlink'

Callers 1

statFunction · 0.85

Calls 1

utimesParentFunction · 0.85

Tested by

no test coverage detected