Yep, makes sense to use it without using structure pointers like that.
Not sure if this is the most efficient way to do the job, but also in the "stat" structure are things like file date, file comments, etc, which can be useful.
It's a good general purpose "give me every information available about a file" type of function.