How do I check if there are any files in the result?

In the samples there is an example of accessing the "rows" but no example for accessing the file list..

I presume a natty bit of javascript will do it..

Thanks!
Dan