(filePath: string)
| 21 | */ |
| 22 | export class BinaryFileHandler implements FileHandler { |
| 23 | async canHandle(filePath: string): Promise<boolean> { |
| 24 | // Content-based binary detection using isBinaryFile |
| 25 | try { |
| 26 | return await isBinaryFile(filePath); |
| 27 | } catch (error) { |
| 28 | // If we can't check (file doesn't exist, etc.), don't handle it |
| 29 | return false; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | async read(filePath: string, options?: ReadOptions): Promise<FileResult> { |
| 34 | const instructions = this.getBinaryInstructions(filePath); |
nothing calls this directly
no outgoing calls
no test coverage detected