NAME

WWW::SFDC::Zip - Utilities for manipulating base64 encoded zip files.

VERSION

version 0.37

SYNOPSIS

    use WWW::SFDC::Zip qw"unzip makezip";

    makezip $srcDirectory, @listOfFiles;

    unzip $destDirectory, $base64encodedzipfile, &unzipTimeChanges;

FUNCTIONS

unzip $destFolder, $dataString, $callback

Takes a some base64 $data and turns it into a file tree, starting at $dest. It does this by turning unpackaged/ into $dest/ whilst unzipping, so the data needs to come from an above-defined retrieve request.

Whilst each file is in memory, this function calls:

 $callback->($filename, $content)

In this way, you can use $calback to modify or remove files before they get written to disk.

makezip \%options, @fileList

Creates and returns a zip stream from the file list given. Replaces unpackaged/ with $options{basedir} if set.

EXPORT

Can export unzip and makezip.

BUGS

Please report any bugs or feature requests at https://github.com/sophos/WWW-SFDC/issues.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc WWW::SFDC::Zip

You can also look for information at https://github.com/sophos/WWW-SFDC

AUTHOR

Alexander Brett <alexander.brett@sophos.com> http://alexander-brett.co.uk

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Sophos Limited https://www.sophos.com/.

This is free software, licensed under:

  The MIT (X11) License

The full text of the license can be found in the LICENSE file included with this distribution.