MCPcopy Index your code
hub / github.com/codeaashu/claude-code / resolveSandboxFilesystemPath

Function resolveSandboxFilesystemPath

src/utils/sandbox/sandbox-adapter.ts:138–146  ·  view source on GitHub ↗
(
  pattern: string,
  source: SettingSource,
)

Source from the content-addressed store, hash-verified

136 * on allowWrite paths (it only strips trailing glob suffixes).
137 */
138export function resolveSandboxFilesystemPath(
139 pattern: string,
140 source: SettingSource,
141): string {
142 // Legacy permission-rule escape: //path → /path. Kept for compat with
143 // users who worked around #30067 by writing //Users/foo/.cargo in config.
144 if (pattern.startsWith('//')) return pattern.slice(1)
145 return expandPath(pattern, getSettingsRootPathForSource(source))
146}
147
148/**
149 * Check if only managed sandbox domains should be used.

Callers 1

Calls 2

expandPathFunction · 0.85

Tested by

no test coverage detected