Fix compiling libsyncthing tests

This commit is contained in:
Martchus 2019-06-22 16:38:59 +02:00
parent d02bcad77b
commit 3c9ab47e2a
1 changed files with 2 additions and 2 deletions

View File

@ -80,10 +80,10 @@ string InterfaceTests::setupConfigDir()
try {
const auto dirIterator = filesystem::directory_iterator(configDir);
for (const auto &dir : dirIterator) {
if (!dir.is_directory() || dir == "." || dir == "..") {
const auto dirPath = dir.path();
if (!dir.is_directory() || dirPath == "." || dirPath == "..") {
continue;
}
const auto dirPath = dir.path();
const auto subdirIterator = filesystem::directory_iterator(configDir % '/' + dirPath);
for (const auto &file : subdirIterator) {
if (file.is_directory()) {