[opencms-dev] Re: opencms-dev Digest, Vol 109, Issue 4

Joe Lam joe.lam at moni-media.net
Fri Sep 8 04:26:18 CEST 2006


CmsObject

public boolean *existsResource*(java.lang.String resourcename)


Joe

> Hallo.
>
> How can I do to know if exists a file in OpenCMS 6.2.1?
>
> I was using the followings lines with OpenCMS 5.0:
>
> -----
> try
> {
>  cms.readFileHeader(filename);
>  existe_en_version = true;
> }
> catch (CmsException e)
> {
>  existe_en_version = false;
> }
> -----
>
> Can you help to me??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060908/2d302cf9/attachment.htm>


More information about the opencms-dev mailing list