mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
25 lines
687 B
C++
25 lines
687 B
C++
// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
//! \file
|
|
//! \ingroup sampleblackmisc
|
|
|
|
#include "samplesfile.h"
|
|
#include "blackmisc/directoryutils.h"
|
|
#include "blackmisc/stringutils.h"
|
|
|
|
using namespace BlackMisc;
|
|
|
|
namespace BlackSample
|
|
{
|
|
int CSamplesFile::samples(QTextStream &out)
|
|
{
|
|
const QString dir = "R:/temp";
|
|
out << "Testing directory search " << dir << Qt::endl;
|
|
const bool f = CDirectoryUtils::containsFileInDir(dir, "*.air", true);
|
|
out << "Found " << boolToYesNo(f) << Qt::endl;
|
|
return 0;
|
|
}
|
|
|
|
} // namespace
|