(filePath: string, grants: AttachmentGrant, cwd: string)
| 85 | } |
| 86 | |
| 87 | async function assertGrantedPath(filePath: string, grants: AttachmentGrant, cwd: string) { |
| 88 | if (await isGrantedPath(filePath, grants, cwd)) return |
| 89 | throw new Error(`Path is not an attached file or inside an attached folder: ${filePath}`) |
| 90 | } |
| 91 | |
| 92 | async function assertGrantedDirectoryPath(filePath: string, grants: AttachmentGrant, cwd: string) { |
| 93 | if (await isGrantedDirectoryPath(filePath, grants, cwd)) return |
no test coverage detected