The new update for arc/zip addon contains support for creating directory entries.
Good suggestion. --- "Sherlock, Ric" <[EMAIL PROTECTED]> wrote: > 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 > ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
