title: How to zip a folder in MacOS without creating an extra directory inside the zip file
body: <p>I got a .zip file from my friend and it was compressed under windows, which contains three subfolders inside of it, and when I check the contents of it on my Mac terminal it looks like this:
  <a href="https://i.stack.imgur.com/iE8mU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iE8mU.png" alt="enter image description here"></a></p>
  
  <p>Now I unzip this file and then zip it through terminal, and when I check the contents of that zip file it becomes like this:
  <a href="https://i.stack.imgur.com/pES1L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pES1L.png" alt="enter image description here"></a></p>
  
  <p>I have googled how to zip on mac without creating a subfolder with same name but none of them solves the problem, my question is how to do the zip on Mac which makes the zip file looks exactly same with the initial one I got. 
  Thanks very very much</p>
  
  <p>New edit: 
  I think I might did not do very well to summarize my problem, so the initial folder contains three sub-folders and all of them were created in windows environment and compressed on windows, when I tried to unzip it on my MacOS machine, the unzipped folder looks still good but when I do the compression on Mac and then view the .zip file through unzip -l xxxx.zip, it is giving me 6 files in which the three sub-folders are also treated as files. Based on my knowledge this is because in BSD systems all the folders are treated as files but in windows they are not, what I'm currently doing is to delete all these files that represent folders through "zip -d", which I know is very silly. I would be more than happy to talk about this from an operating system view with anybody who is interested in it. Thanks in advance.  </p>