code: private boolean existsResource(CmsResource res) {
  
          long now = new Date().getTime();
          long created = res.getDateCreated();
          long diff = (now - created) / 1000;
  
          if (diff <= TIME_DELAY) {
  
              // check tmp file table
              if (TMP_FILE_TABLE.contains(res.getRootPath())) {
                  return true;
              }
  
              return false;
          } else {
  
              // remove from tmp file table
              TMP_FILE_TABLE.remove(res.getRootPath());
          }
  
          return true;
      }
docs: Checks if a resource exists depending on the creation date and the temp files saved.<p>
  
  Dreamweaver copies folders through creating folder for folder and file for file.
  So there is first a call if the property folder already exists and afterwards create
  it. If the folder already exists, the copy action fails.
  In the first time after creating a folder, the property dir does not exists until it is
  created or the time expired.<p>
  
  @param res the resource to check if it exists
  
  @return return if the folder exists otherwise false