2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-05 03:22:19 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2008-09-07 22:26:38 +02:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2008-12-08 05:46:09 +01:00
|
|
|
|
2017-04-07 06:55:10 +02:00
|
|
|
namespace Common
|
|
|
|
{
|
2017-06-21 06:24:26 +02:00
|
|
|
// Callers can pass empty "exts" to indicate they want all files + directories in results
|
|
|
|
// Otherwise, only files matching the extensions are returned
|
|
|
|
std::vector<std::string> DoFileSearch(const std::vector<std::string>& directories,
|
|
|
|
const std::vector<std::string>& exts = {},
|
2015-09-22 02:01:08 +02:00
|
|
|
bool recursive = false);
|
2017-04-07 06:55:10 +02:00
|
|
|
} // namespace Common
|