Deleting files/directories with new Io interface

I’m new to zig, but i figured i should start out with the new Io, so that i do not have to immediatly re-write it as it drops in release.

However, i’m a bit stumped trying to write a tmpDir equivalent using Io.Dir, i cannot find any API for deleting directories, or even files. How would you go about removing an Io.Dir from the filesystem?

possibly it’s functionality of std.fs.Dir.deleteDir() ?

3 Likes