|file name|do stuff?|
...and in this case the DoStuff() method would simply compare the file size to 0. Something like that.
The code works out differently in Java and C# (the former was easier; the latter required me to hack into Fit more than I would have liked). I can send you either one if you drop me a line. I had to eliminate the code from this posting because it ruined the format of the blog; can't have that!