How to check if file is executable

While doing codecrafters Build your own shell stage 5 i need to check if file is executable. How do i do it in Zig 0.16.0?

Of course finally after posting this question i found Dir.access

You probably want File.stat instead and check for executable permission.

1 Like