MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / isTxtFile

Method isTxtFile

src/activities/reader/ReaderActivity.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18bool ReaderActivity::isXtcFile(const std::string& path) { return FsHelpers::hasXtcExtension(path); }
19
20bool ReaderActivity::isTxtFile(const std::string& path) {
21 return FsHelpers::hasTxtExtension(path) ||
22 FsHelpers::hasMarkdownExtension(path); // Treat .md as txt files (until we have a markdown reader)
23}
24
25bool ReaderActivity::isBmpFile(const std::string& path) { return FsHelpers::hasBmpExtension(path); }
26

Callers

nothing calls this directly

Calls 2

hasMarkdownExtensionFunction · 0.85
hasTxtExtensionFunction · 0.50

Tested by

no test coverage detected