Differences between revisions 59 and 60
Revision 59 as of 2011-09-25 06:49:49
Size: 1208
Editor: KaiJaeger
Comment: Warning added
Revision 60 as of 2014-01-10 11:51:39
Size: 1563
Editor: KaiJaeger
Comment: New version
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
|| /!\ Unfortunately a bug in 7-zip was discovered that makes it impossible to make use of it || Note that 7zip issues an error when you pass something like this with the flag to preserve the directory structure:
Line 10: Line 10:
For details see the [[http://aplwiki.com/SevenZip/ProjectPage | project page ]] {{{
C:\My\folder1\file.txt
C:\My\folder2\file.txt
}}}

This is a clearly a bug. However, you can easily get around this by executing the command within `C:\My` and this list of files:
{{{
folder1\file.txt
folder2\file.txt
}}}

In other words: relative paths are fine, absolute ones are not.

Since version 1.1.0 the `SevenZip` class issues in hint if this error occurs and absolute path names are used.
Line 13: Line 26:

SevenZip

SevenZip is part of the CategoryAplTree project.

Warning

Note that 7zip issues an error when you pass something like this with the flag to preserve the directory structure:

C:\My\folder1\file.txt
C:\My\folder2\file.txt

This is a clearly a bug. However, you can easily get around this by executing the command within C:\My and this list of files:

folder1\file.txt
folder2\file.txt

In other words: relative paths are fine, absolute ones are not.

Since version 1.1.0 the SevenZip class issues in hint if this error occurs and absolute path names are used.

Overview

The class "SevenZip" relies on an installed version of the Open Source zipper 7zip.

The class makes it very easy to zip as well as unzip stuff.

"SevenZip" suppports the following formats:

  • 7z
  • split
  • zip
  • gzip
  • bzip2
  • tar

You can either specify an appropriate extension or set the "type" property in order to enforce a certain format.

      myZipper←⎕new #.SevenZip (,⊂'MyZipFile')
      ⎕←myZipper
[SevenZip@MyZipFile]
      myZipper.Add 'foo.txt'
      ⎕←myZipper.List 0
foo.txt
myZipper.Unzip 'c:\output\'

Project Page

For bug reports, future enhancements and a full version history see SevenZip/ProjectPage

Version Information

Original author:

KaiJaeger

Responsible:

KaiJaeger

Email:

kai@aplteam.com


CategoryAplTree

WinZip (last edited 2016-09-13 15:27:22 by KaiJaeger)