title: File separators of Path name of ZipEntry?
body: <p>ZIP entries store the full path name of the entry because (I'm sure of the next part) the ZIP archive is not organized as directories. The metadata contains the info about how files are supposed to be stored (inside directories).</p>
  
  <p>If I create a ZIP file in Windows, when I unzip the data in another OS, e.g. Mac OS X, the file structure remains as it used to be in Windows. Is this because the unzipper is designed to handle this, or isit  because the file separators inside the ZIP are standard?</p>
  
  <p>I'm asking this because I'm trying to find an entry inside a ZIP file using the name of the zipped file. But which file separator should I use to make it work in systems other than Windows?</p>
  
  <p>I'm using Java, and the method: <code>.getName()</code> of the <code>ZipEntry</code> gives me the path using the Windows file separator <code>\</code>. Would it be enough if I use the java <code>File.separator</code> separator to make it work on another OS? Or will I have to try to find my file with each possible separator?</p>
  
  <p><strong>Honorary Correct Answer Mention</strong></p>
  
  <p>The answer given by @Eren Yilmaz is correct describing the functionality of many tools (or even the one you can code yourself). But given that the .zip standard clearly documents how it <strong>must</strong> be, the correct answer had to be updated</p>