I have written below code to zip the directory and all the files and folder under it, but getting an error whenever I am trying to download the file on windows machine and trying to unzip it.
Does it unzip correctly on your original host? Did you consider trying several different unzip pers on the windows side? Would it make sense to run unix2dos (or equivalent) before zip ping it?