MCPcopy Create free account
hub / github.com/AICoderTudou/claude-code-tudou / setWorkspacePath

Function setWorkspacePath

desktop/main.cjs:143–153  ·  view source on GitHub ↗
(nextPath)

Source from the content-addressed store, hash-verified

141}
142
143function setWorkspacePath(nextPath) {
144 if (!nextPath || typeof nextPath !== "string") return false;
145 try {
146 const stat = fs.statSync(nextPath);
147 if (!stat.isDirectory()) return false;
148 currentWorkspace = nextPath;
149 return true;
150 } catch {
151 return false;
152 }
153}
154
155function buildCliArgs(sessionId, model, isResuming) {
156 const args = [

Callers 1

main.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected