We've been through this before, it seems -- the easiest way is to try to create a link to a known file with the desired name. Then if the link fails, you know it already exists; if it succeeds, you've got it.