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

Function isFileReadDenied

source code/utils/attachments.ts:3988–3999  ·  view source on GitHub ↗
(
  filePath: string,
  toolPermissionContext: ToolPermissionContext,
)

Source from the content-addressed store, hash-verified

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

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