Ref T660, fixed and renamed to "getRelativeSubDirectories" plus sample

This commit is contained in:
Klaus Basan
2019-07-11 02:50:12 +02:00
committed by Mat Sutcliffe
parent 3cb3724556
commit ca7f11eb81
5 changed files with 69 additions and 8 deletions

View File

@@ -0,0 +1,29 @@
/* Copyright (C) 2019
* swift Project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
* or distributed except according to the terms contained in the LICENSE file.
*/
//! \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 << endl;
const bool f = CDirectoryUtils::containsFileInDir(dir, "*.air", true);
out << "Found " << boolToYesNo(f) << endl;
return 0;
}
} // namespace