fix MemoryDevice::list & update filesystem tests

This commit is contained in:
MihailRis
2025-11-16 18:51:14 +03:00
parent 262a373483
commit 1e1fd53209
3 changed files with 28 additions and 1 deletions
+2 -1
View File
@@ -139,7 +139,8 @@ uint64_t io::MemoryDevice::removeAll(std::string_view path) {
uint64_t count = 0;
if (found->second.holds_alternative<Dir>()) {
auto dir = found->second.get_if<Dir>();
for (const auto& name : dir->content) {
auto files = dir->content;
for (const auto& name : files) {
io::path subPath = filePath / name;
count += removeAll(subPath.string());
}