(filePath: string, grants: AttachmentGrant, cwd: string)
| 80 | } |
| 81 | |
| 82 | async function isGrantedDirectoryPath(filePath: string, grants: AttachmentGrant, cwd: string) { |
| 83 | const resolved = await tryRealpath(await existingPathVariant(resolveToolPath(filePath, cwd))) |
| 84 | return grants.directories.has(resolved) |
| 85 | } |
| 86 | |
| 87 | async function assertGrantedPath(filePath: string, grants: AttachmentGrant, cwd: string) { |
| 88 | if (await isGrantedPath(filePath, grants, cwd)) return |
no test coverage detected