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

Method chmod

lib/protocol/SFTP.js:1195–1199  ·  view source on GitHub ↗
(path, mode, cb)

Source from the content-addressed store, hash-verified

1193 }, cb);
1194 }
1195 chmod(path, mode, cb) {
1196 return this.setstat(path, {
1197 mode: mode
1198 }, cb);
1199 }
1200 readlink(path, cb) {
1201 if (this.server)
1202 throw new Error('Client-only method called in server mode');

Callers 2

tryStatFunction · 0.80
tryAgainFunction · 0.80

Calls 1

setstatMethod · 0.95

Tested by

no test coverage detected