I want to Zip folder. Problem is If folder contain only one pdf, it just zipping file. while i extract the zipped file its not coming with folder while zipping folder contain one file.
How can i achive folder zipping even one files.
Please help
Thank You!
Colin Law
unread,
Feb 6, 2013, 4:14:25 AM2/6/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Did you try the docs at http://rubyzip.sourceforge.net/classes/Zip/ZipFile.html?
I have not used it but it looks as if the answer should be there.
Also googling for
zip::zipfile::create add folder
shows lots of good looking hits