[opencms-dev] Exists file?

ANDRES SAYAGO asayago at ebstudio.com
Wed Sep 6 22:11:36 CEST 2006


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??



More information about the opencms-dev mailing list