[opencms-dev] Existing file

Emiliano Viera eviera at sdd.com.ar
Mon Jan 26 21:22:01 CET 2004


Thanks!

----- Original Message -----
From: "Thomas März" <thomasmaerz at gmx.de>
To: <opencms-dev at opencms.org>
Sent: Monday, January 26, 2004 5:16 PM
Subject: Re: [opencms-dev] Existing file


> "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
> }
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list