Checking files for information

Hi all,

Is there a way to check all the files in a directory for filename, file extension, file size?
Then write a script
Like
If filesize > 0
then process it
else
Do nothing

What snap can I use?

Thanks

Have you tried Directory Browser to gather that data?