in reply to Traverse a directory

I want to know if there is any alternative of unix file command

Yes, and you have an example here