MCPcopy Index your code
hub / github.com/Noumena-Network/code / isFileReadDenied

Function isFileReadDenied

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

Source from the content-addressed store, hash-verified

3991
3992
3993function isFileReadDenied(
3994 filePath: string,
3995 toolPermissionContext: ToolPermissionContext,
3996): boolean {
3997 const denyRule = matchingRuleForInput(
3998 filePath,
3999 toolPermissionContext,
4000 'read',
4001 'deny',
4002 )
4003 return denyRule !== null
4004}

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