mladinox / miniz

Automatically exported from code.google.com/p/miniz
0 stars 0 forks source link

mz_zip_writer_add_file does not support directory #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
mz_zip_writer_add_file(&zip_archive, "dir/", "dir/", NULL, 0, 0);

What is the expected output? What do you see instead?
Expected to see it read directory modified time and other attribute and add an 
entry to zip_archive.
But the function return false every time.

What version of the product are you using? On what operating system?
v115_r4
win8.1

Please provide any additional information below.
The only way I can find to add directory entry is mz_zip_writer_add_mem, but 
the modified time will be now instead of actual modified time of the directory.

Original issue reported on code.google.com by jayxon on 10 Apr 2014 at 10:42