mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 20:52:12 -04:00
Tones bugfix, numbers station voice files search
This commit is contained in:
parent
ee099504c3
commit
089eeeafe4
24 changed files with 335 additions and 194 deletions
|
@ -180,6 +180,19 @@ std::vector<std::filesystem::path> scan_root_files(const std::filesystem::path&
|
|||
return file_list;
|
||||
}
|
||||
|
||||
std::vector<std::filesystem::path> scan_root_directories(const std::filesystem::path& directory) {
|
||||
|
||||
std::vector<std::filesystem::path> directory_list { };
|
||||
|
||||
for(const auto& entry : std::filesystem::directory_iterator(directory, "*")) {
|
||||
if( std::filesystem::is_directory(entry.status()) ) {
|
||||
directory_list.push_back(entry.path());
|
||||
}
|
||||
}
|
||||
|
||||
return directory_list;
|
||||
}
|
||||
|
||||
namespace std {
|
||||
namespace filesystem {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue