dirtree-0.1.0: A small library for working with directories.

System.DirTree.Zip

Contents

Description

Enables reading and writeing zipfiles using dirtrees. It is not a complete 1-1 mapping but for many usecases it gets the job done.

It is based of the zip-archive library, which can be used if more control is needed.

Synopsis

# Documentation

Convert entries to a FileMap of RelativeDirTree

Create a list of enties from a FileMap.

# Helpers

Convert a entry to a single filemap, fails if the entry path is empty.

Create a single entry from a file. This also handles symlinks, but changes saves all files with the stdFileMode.

A lens to get and set the files of an archive. Uses sparingly on big archvies as it will convert forth and back.

A simple lens into the entries of an archive.

# Re-Exports

Reads an Archive structure from a raw zip archive (in a lazy bytestring).

Writes an Archive structure to a raw zip archive (in a lazy bytestring).