How to determine if there's a file in directory!

Hi All,

I'm just wondering how can i determined if there's a file in directory and put it in a logs?

dir="/home/test/"

Please advise,
Thanks,

ls $dir > log

--ahamed