[opencms-dev] Exists file?

RuiXian BAO ruixian.bao at gmail.com
Fri Sep 8 00:27:32 CEST 2006


Hello,

On 9/6/06, ANDRES SAYAGO <asayago at ebstudio.com> wrote:
>
> Hallo.
>
> How can I do to know if exists a file in OpenCMS 6.2.1?


Please try the method existsResource() of the CmsObject.

Best

- RuiXian


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??
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060908/5c78e3ce/attachment.htm>


More information about the opencms-dev mailing list