mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 02:17:39 +00:00
Tones bugfix, numbers station voice files search
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
Reference in New Issue
Block a user