Skip to content

SetCwdResult

This content is not available in your language yet.

type SetCwdResult =
| {
from: string;
status: "changed";
to: string;
}
| {
reason: | "turn_running"
| "not_absolute"
| "not_found"
| "not_directory"
| "not_allowed";
status: "rejected";
};

setCwd() 结果联合:changed = 已切换(from/to 为切换前后的绝对路径;to 与 from 相同时 亦回 changed,零副作用);rejected 四拒绝码沿 kernel resolveSessionCwd(not_absolute / not_found / not_directory / not_allowed)+ turn_running(运行中不切、不排队)。