MCPcopy Create free account
hub / github.com/mscdex/ssh2 / utimes

Method utimes

lib/protocol/SFTP.js:1172–1177  ·  view source on GitHub ↗
(path, atime, mtime, cb)

Source from the content-addressed store, hash-verified

1170 }, cb);
1171 }
1172 utimes(path, atime, mtime, cb) {
1173 return this.setstat(path, {
1174 atime: toUnixTimestamp(atime),
1175 mtime: toUnixTimestamp(mtime)
1176 }, cb);
1177 }
1178 fchown(handle, uid, gid, cb) {
1179 return this.fsetstat(handle, {
1180 uid: uid,

Callers

nothing calls this directly

Calls 2

setstatMethod · 0.95
toUnixTimestampFunction · 0.85

Tested by

no test coverage detected