(filePath: string, grants: AttachmentGrant, cwd: string)
| 90 | } |
| 91 | |
| 92 | async function assertGrantedDirectoryPath(filePath: string, grants: AttachmentGrant, cwd: string) { |
| 93 | if (await isGrantedDirectoryPath(filePath, grants, cwd)) return |
| 94 | throw new Error(`Path is not an attached folder: ${filePath}`) |
| 95 | } |
| 96 | |
| 97 | function createAttachmentFileAccess(grants: AttachmentGrant): AttachmentFileAccess { |
| 98 | return { |
no test coverage detected