improve the std.fs.deleteTree API to not require an allocator #2886
Labels
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
standard library
This issue involves writing Zig code for the standard library.
Milestone
Extracted from a TODO comment:
zig/std/fs.zig
Lines 293 to 294 in bdfb314
Once #2885 is solved, it should be possible to implement
deleteTree
without an allocator.Currently, this function is recursive, which would require an allocator once we have #1006. However, I believe it can be implemented non-recursively, and that it would be a reasonable implementation. It would mean making a few more syscalls, but I think that's generally a nice tradeoff to avoid an entire failure mode.
The text was updated successfully, but these errors were encountered: