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

Function isFileReadDenied

src/utils/attachments.ts:3986–3997  ·  view source on GitHub ↗
(
  filePath: string,
  toolPermissionContext: ToolPermissionContext,
)

Source from the content-addressed store, hash-verified

3984
3985
3986function isFileReadDenied(
3987 filePath: string,
3988 toolPermissionContext: ToolPermissionContext,
3989): boolean {
3990 const denyRule = matchingRuleForInput(
3991 filePath,
3992 toolPermissionContext,
3993 'read',
3994 'deny',
3995 )
3996 return denyRule !== null
3997}
3998

Callers 6

getSelectedLinesFromIDEFunction · 0.85
getOpenedFileFromIDEFunction · 0.85
processAtMentionedFilesFunction · 0.85
getChangedFilesFunction · 0.85
generateFileAttachmentFunction · 0.85
readTruncatedFileFunction · 0.85

Calls 1

matchingRuleForInputFunction · 0.85

Tested by

no test coverage detected