MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / checkValidFile

Function checkValidFile

gui/qt/sendinghandler.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41static QStringList bundleList;
42static bool checkValidFile(const char *path) {
43 QString npath(path);
44 foreach (const QString &str, valid_suffixes) {
45 if (npath.endsWith(str, Qt::CaseInsensitive)) {
46 bundleList.append(path);
47 return true;
48 }
49 }
50 return false;
51}
52
53QStringList SendingHandler::getValidFilesFromArchive(const QString& archivePath) {
54 if (!m_tempDir.isValid()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected