MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / resolveCwd

Function resolveCwd

electron/main.js:1167–1177  ·  view source on GitHub ↗
(cwd)

Source from the content-addressed store, hash-verified

1165}
1166
1167function resolveCwd(cwd) {
1168 if (!cwd) return process.cwd()
1169 try {
1170 if (fs.existsSync(cwd) && fs.statSync(cwd).isDirectory()) {
1171 return cwd
1172 }
1173 } catch {
1174 return process.cwd()
1175 }
1176 return process.cwd()
1177}
1178
1179function saveClipboardImage(options = {}) {
1180 const { cwd, prefix } = options || {}

Callers 2

saveClipboardImageFunction · 0.85
startTerminalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected