Creating an empty directory inside a zip file

238 views
Skip to first unread message

Kyle Jones

unread,
Apr 10, 2014, 1:46:22 PM4/10/14
to golan...@googlegroups.com
using the zip package (and writing to bytes.Buffer) is there anyway to create an empty directory?  Writing files is working great but I need an empty directory for the api I am working with.  Any thoughts?

Kyle Jones

unread,
Apr 10, 2014, 2:34:42 PM4/10/14
to golan...@googlegroups.com
Got it, I simply neeeded to add a trailing / to the filename I was creating and that made the directory 
Reply all
Reply to author
Forward
0 new messages