mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-28 02:34:34 +00:00
28 lines
605 B
C++
28 lines
605 B
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
#include "packagecontrol.h"
|
|
|
|
#include <QDir>
|
|
#include <QFileInfo>
|
|
|
|
|
|
PackageControl::PackageControl()
|
|
{
|
|
|
|
}
|
|
|
|
PackageControl::~PackageControl(){
|
|
|
|
}
|
|
|
|
bool PackageControl::isEmpty(const QString &package) const {
|
|
QFileInfo info(package);
|
|
QDir dirInfo(package);
|
|
return !(info.exists() && dirInfo.entryList(QDir::AllEntries | QDir::NoDotAndDotDot).size());
|
|
}
|