title: Zipping a folder
body: <p>I am trying to use </p>
  
  <pre><code>TZipFile.ZipDirectoryContents()
  </code></pre>
  
  <p>Like so: </p>
  
  <pre><code>TZipFile.ZipDirectoryContents('Test.PCF', WorkingDir);
  </code></pre>
  
  <p>If I am reading this right, it should save the contents of folder "workingdir" into a file named Test.pcf.</p>
  
  <p>Now when I do this I get error::</p>
  
  <pre><code>Raised exception class EFOpenError with message Cannot open file
  ...test.pcf. The process cannot access the file because its being used by another process."
  </code></pre>
  
  <p>Two things confuse me: </p>
  
  <ol>
  <li><p>It says that it cannot open file. There is no test.pcf yet. I was hoping this would create it. </p></li>
  <li><p>It says cannot access file. Is this because it's not created yet? Am I using this function wong? If so how would I create a zip file from a folder location?</p></li>
  </ol>