Added sameFilesInDirs(): check for two different directories if the contain the

same files (comparison by name and by git-blob).
This commit is contained in:
2023-08-22 12:29:52 +02:00
parent 4ebdcf56a0
commit 1620b73d01
2 changed files with 86 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#include <QFile>
#include <QFileInfo>
#include <QDateTime>
#include <QDir>
namespace Utils {
int read1stLineOfFile(QString fileName);
@@ -16,6 +17,8 @@ namespace Utils {
void printLineEditInfo(QStringList const &lines);
QString getTariffLoadTime(QString fileName);
QString rstrip(QString const &str);
bool sameFilesInDirs(QDir const &dir1, QDir const &dir2,
QStringList const &nameFilters = {"*.json"});
}
#endif // UTILS_H_INCLUDED