MCPcopy
hub / github.com/codeaashu/claude-code / getFileReadIgnorePatterns

Function getFileReadIgnorePatterns

src/utils/permissions/filesystem.ts:837–851  ·  view source on GitHub ↗
(
  toolPermissionContext: ToolPermissionContext,
)

Source from the content-addressed store, hash-verified

835 * @param toolPermissionContext
836 */
837export function getFileReadIgnorePatterns(
838 toolPermissionContext: ToolPermissionContext,
839): Map<string | null, string[]> {
840 const patternsByRoot = getPatternsByRoot(
841 toolPermissionContext,
842 'read',
843 'deny',
844 )
845 const result = new Map<string | null, string[]>()
846 for (const [patternRoot, patternMap] of patternsByRoot.entries()) {
847 result.set(patternRoot, Array.from(patternMap.keys()))
848 }
849
850 return result
851}
852
853function patternWithRoot(
854 pattern: string,

Callers 3

callFunction · 0.85
logContextMetricsFunction · 0.85
globFunction · 0.85

Calls 4

getPatternsByRootFunction · 0.85
entriesMethod · 0.80
keysMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected