The 20th program in GNULinux.pdf (mentioned in blog 1) traverses sub directories by changing the executing process's current working directory into that sub directory. This is not safe because if the program faults, its current working directory can be in a different one that which it was executed from. Imagine running all of this in a automated build system. The system will run subsequent commands in wrong directory.
But in zig we are using a directory Walker to walk through the contents of the directory. Zig makes if safe for us to do this automatically. The 21st program is about doing this safely and because the 20th program is already safe, we will be skipping this.
Thanks for reading. To be continued.






