What is the syntax for adding a directory entry to a zip file using the
arc/zip addon?

I recently put together a script for zipping and unzipping directory
trees using the arc/zip addon
(http://www.jsoftware.com/jwiki/Scripts/ZipTrees). While I was
developing it I wasn't able to find any info on how to create a
directory entry in a zip file, either on the Addon page
http://www.jsoftware.com/jwiki/Addons/arc/zip or in the addon scripts. I
thought I'd discovered the method by trial and error. 

'' zwrite dirname;zipname

However I see now that it is only adding a zero length file. (I am
"sure" at the time that the addition to the zip turned up as a
directory!!! ;-) )

My script works despite this because the script always suffixes the
dirname with a '/' & uses that criterion to determine whether an entry
in zdir output is a directory or not. But I'd like to get it right if I
can.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to