code: protected void updateFromResource() {
  
          setCreationDate(m_resource.getDateCreated());
          int length = m_resource.getLength();
          if (m_resource.isFolder()) {
              length = 1;
          }
          setFileSize(length);
          setModifyDate(m_resource.getDateLastModified());
          setAttributes(m_resource.isFile() ? FileAttribute.Normal : FileAttribute.Directory);
      }
docs: Copies state information from the internal CmsResource object to this object.<p>