MCPcopy Create free account
hub / github.com/WJX20/claude-code / isFileReadDenied

Function isFileReadDenied

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

Source from the content-addressed store, hash-verified

3985
3986
3987function isFileReadDenied(
3988 filePath: string,
3989 toolPermissionContext: ToolPermissionContext,
3990): boolean {
3991 const denyRule = matchingRuleForInput(
3992 filePath,
3993 toolPermissionContext,
3994 'read',
3995 'deny',
3996 )
3997 return denyRule !== null
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