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:
3
utils.h
3
utils.h
@@ -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
|
||||
|
Reference in New Issue
Block a user