mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
fix MemoryDevice::list & update filesystem tests
This commit is contained in:
parent
262a373483
commit
1e1fd53209
3 changed files with 28 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue