2015-05-24 07:55:12 +03:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-05 04:22:19 +03:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2014-02-10 20:54:46 +02:00
|
|
|
#pragma once
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2008-09-07 23:26:38 +03:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2008-12-08 06:46:09 +02:00
|
|
|
|
2017-04-07 07:55:10 +03:00
|
|
|
namespace Common
|
|
|
|
{
|
2017-06-21 07:24:26 +03: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 03:01:08 +03:00
|
|
|
bool recursive = false);
|
2017-04-07 07:55:10 +03:00
|
|
|
} // namespace Common
|