[opencms-dev] Existing file

Emiliano Viera eviera at sdd.com.ar
Mon Jan 26 20:43:01 CET 2004


How can i check that a file in the VFS exists ?

Im trying to show images instead of text on a menu, but i need to ensure that the image file do exists. If i try to do something like:

cms.link("/system/galleries/pics/App/" + nav.getNavText() + ".gif")

It always returns a string and doesn't check that the referenced file exists. If i use it, and the file doens't exists, the browser shows a broken image.

Thanks
Emiliano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040126/7381deaa/attachment.htm>


More information about the opencms-dev mailing list