MCPcopy
hub / github.com/Doorman11991/smallcode / pwd

Method pwd

src/tools/shell_session.js:248–252  ·  view source on GitHub ↗

* Get the shell's current working directory. * Runs `pwd` (POSIX) or `cd` (Windows) — useful for status display.

()

Source from the content-addressed store, hash-verified

246 * Runs `pwd` (POSIX) or `cd` (Windows) — useful for status display.
247 */
248 async pwd() {
249 const isWin = process.platform === 'win32';
250 const r = await this.run(isWin ? 'cd' : 'pwd');
251 return r.stdout.trim().split('\n')[0] || this.cwd;
252 }
253
254 /**
255 * Reset the shell — kill the current process and spawn a fresh one.

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected