| 29 | static bool TryClassifyAsTD4_TD6(IStream* stream, ClassifiedFileInfo* result); |
| 30 | |
| 31 | bool TryClassifyFile(const std::string& path, ClassifiedFileInfo* result) |
| 32 | { |
| 33 | try |
| 34 | { |
| 35 | auto fs = FileStream(path, FileMode::open); |
| 36 | return TryClassifyFile(&fs, result); |
| 37 | } |
| 38 | catch (const std::exception&) |
| 39 | { |
| 40 | return false; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | bool TryClassifyFile(IStream* stream, ClassifiedFileInfo* result) |
| 45 | { |
no test coverage detected