title: Determine if file is a directory, inside zip archive
body: <p>I read zip files according to the specification, and get information for each file, from a central directory. From the headers I read:</p>
  
  <pre><code>#define VERSION_NEEDED_OFSSET 6
  
  UINT16 versionNeeded = (UINT16)*(zipFile + VERSION_NEEDED_OFSSET);
  </code></pre>
  
  <p>So I zipped some files, and also a few directories, and when I got info about the directory, I got <code>versionNeeded = 0x000a</code></p>
  
  <p>From the documentation I read:</p>
  
  <blockquote>
    <p>The minimum supported ZIP specification version needed 
        to extract the file, mapped as above.  This value is based on 
        the specific format features a ZIP program MUST support to 
        be able to extract the file.  If multiple features are
        applied to a file, the minimum version MUST be set to the 
        feature having the highest value. New features or feature 
        changes affecting the published format specification will be 
        implemented using higher version numbers than the last 
        published value to avoid conflict.</p>
    
    <p>4.4.3.2 Current minimum feature versions are as defined below:</p>
    
    <p>1.0 - Default value</p>
    
    <p>1.1 - File is a volume label</p>
    
    <p>2.0 - File is a folder (directory)</p>
  </blockquote>
  
  <p>But what is the part of the zip header that is used to determine the file type? I cannot see any types or bits that are responsible for the file type from the <a href="https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT" rel="noreferrer">documentation</a>.</p>