[opencms-dev] Existing file

Thomas M�rz thomasmaerz at gmx.de
Mon Jan 26 21:14:02 CET 2004


"Emiliano Viera" <eviera at sdd.com.ar> writes:

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

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

try
{
    cmsObject.readFileHeader( "/system/galleries/pics/App/" + nav.getNavText() + ".gif" );
}
catch ( CmsException e )
{
    // file does not exist
}




More information about the opencms-dev mailing list