MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / isFileReadDenied

Function isFileReadDenied

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

Source from the content-addressed store, hash-verified

4065}
4066
4067function isFileReadDenied(
4068 filePath: string,
4069 toolPermissionContext: ToolPermissionContext,
4070): boolean {
4071 const denyRule = matchingRuleForInput(
4072 filePath,
4073 toolPermissionContext,
4074 'read',
4075 'deny',
4076 )
4077 return denyRule !== null
4078}

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