Addons/arc/ziptrees

From J Wiki
Jump to navigation Jump to search
User Guide | Installation | Development | Categories | Git | Build Log

general/ziptrees

  • Provides verbs for zipping and unzipping directory trees.
  • The dirutils addon must also be installed.

Browse source and examples in SVN.


Verbs

unziptree v Unzip zipfile y to directory tree x.
zipfiles v Add/Append one or more files to a zip file.
ziptree v Zip directory tree y to zipfile x.
ztypes v Get file types for contents of zip file.

Installation

Use JAL/Package Manager to install the ziptrees and dirutils addons.

Usage

Load ziptrees addon with the following line

   load 'arc/ziptrees'

To see the sampler of usage, run the test.ijs script.

    • Open the script open 'arc/ziptrees/test'
    • Select all contents using Ctrl+A
    • Run Selection using Ctrl+E

Here is typical session output from the test.ijs script.

Authors

See Also

  • The JAL arc/zip Addon Cross platform zip utilities.
  • dirutils Addon Generic directory utilities used by this script.
  • dirtrees Addon for copying and deleting directory trees.
  • UnZip script for unzipping a directory tree using the external zip program distributed with J.