This is calling back with the wrong `err`. It should be returning the error from `readdir`, but it's returning the last error from `stat`.