(folderIds: string[])
| 110 | * emitted without wrapping parentheses to keep the query minimal. |
| 111 | */ |
| 112 | export function buildDriveParentsClause(folderIds: string[]): string | null { |
| 113 | if (folderIds.length === 0) return null |
| 114 | const clause = folderIds.map((id) => `'${escapeDriveQueryValue(id)}' in parents`).join(' or ') |
| 115 | return folderIds.length > 1 ? `(${clause})` : clause |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Reads a response body into a Buffer while enforcing a hard byte cap. The |
no test coverage detected