mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T660, fixed and renamed to "getRelativeSubDirectories" plus sample
This commit is contained in:
committed by
Mat Sutcliffe
parent
3cb3724556
commit
ca7f11eb81
29
samples/blackmisc/samplesfile.cpp
Normal file
29
samples/blackmisc/samplesfile.cpp
Normal 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
|
||||
Reference in New Issue
Block a user