io: implement pre- and post-order directory traversal for windows

This commit is contained in:
2025-02-12 22:11:18 +00:00
parent bdbae88e87
commit 8862cdf2e0
5 changed files with 368 additions and 11 deletions

View File

@@ -156,7 +156,9 @@ struct b_path *b_path_join(
}
for (size_t i = 0; i < nr_paths; i++) {
append_path(result, paths[i]);
if (paths[i]) {
append_path(result, paths[i]);
}
}
return result;
@@ -213,6 +215,11 @@ bool b_path_is_directory(const struct b_path *path)
}
const char *b_path_ptr(const struct b_path *path)
{
return b_string_ptr(path->pathstr);
}
struct b_path *b_path_retain(struct b_path *path)
{
}