How to test is a folder exists ?

I try to use webdavResource.setPath (path) and then webdavResource.exists()

but setPath throws HttpException with reason code 404. is this the
only way to  know if a folder does not exit:

  try {
         webdavResource.setPath (path);
  } catch (HttpException he) {
         if (he.getReasonCode() == 404) {
            // create the folde here ...
         }
  }

thanks !
lx

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to