in reply to Why is Stat() Not Stating All Files?

And no one else has mentioned this explicitly, but stat works perfectly well on directories as your own results for ./ show. Some of the results have a little different meaning, but the system call itself works fine.