While loop `continue` bug?

See my comment in that thread and the linked PR.

AFAICT your only use of realpath is to convert paths to absolute, but there’s no need for that. The std.fs.Dir functions all work with any path type (you can use std.fs.cwd() to get a Dir to start with if you need it).