CQtDeployer/Deploy/packagecontrol.cpp

28 lines
605 B
C++
Raw Normal View History

/*
* Copyright (C) 2018-2021 QuasarApp.
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
*/
2020-08-15 14:38:03 +03:00
#include "packagecontrol.h"
2020-12-10 11:12:04 +03:00
#include <QDir>
#include <QFileInfo>
2020-08-15 14:38:03 +03:00
PackageControl::PackageControl()
{
}
2020-12-03 20:00:14 +03:00
PackageControl::~PackageControl(){
}
2020-12-10 11:12:04 +03:00
bool PackageControl::isEmpty(const QString &package) const {
QFileInfo info(package);
QDir dirInfo(package);
return !(info.exists() && dirInfo.entryList(QDir::AllEntries | QDir::NoDotAndDotDot).size());
}