[PROJECT] Smart Archive management

This (from the Scripts (JS & VBS) Snippet: Enumerating files and metadata tags sticky post) works with zip files and will normally use a cached directory listing if the zip is already open:

[code]function OnClick(clickData)
{
var folderEnum = DOpus.FSUtil.ReadDir(clickData.func.sourcetab.path, false);

while (!folderEnum.complete)
{
   var folderItem = folderEnum.next;

   if (folderItem.is_dir)
   {
      DOpus.Output("Dir: " + folderItem);
   }
   else
   {
      DOpus.Output("File: " + folderItem);
   }
}

}[/code]

That should be all you need.