title: Unzip multiple gzip files across different folders recursively in Java
body: <p>I have the following file structure:     </p>
  
  <pre><code>D:\Files\File1\file.gz, file2.gz, file3.gz
  D:\Files\File2\file.gz, file2.gz, file3.gz
  etc..
  </code></pre>
  
  <p>I would like to provide the Java program with just <code>D:\Files</code> and it should recursively open each directory, and unzip each file.gz and file2.gz (they all have the same name, so I can just ask it to look for all files matching that name) into the same folder.</p>
  
  <p>I have tried different codes to get each file to extract but nothing seems to work. Another funny thing that happens to me is that I can't seem to unlock read-only permissions on the directory. I uncheck it, go to the Security tab and give myself admin privileges, and yet, the next second, its back to read-only. It's Off topic, but I had to put it out there. Please help me someone! Thanks!</p>