ExVEx.Packaging.Zip (ExVEx v0.1.3)

Copy Markdown View Source

Archive IO for the Open Packaging Convention container used by .xlsx / .xlsm / .xltx files.

An xlsx file is a ZIP archive containing XML parts. This module is the lowest layer: it reads the archive into a flat list of %Entry{} records and writes a list of entries back to disk. It does not know about the OOXML schema — higher-level modules interpret the parts.

Summary

Types

path()

@type path() :: Path.t()

Functions

read(path)

@spec read(path()) :: {:ok, [ExVEx.Packaging.Zip.Entry.t()]} | {:error, term()}

write(path, entries)

@spec write(path(), [ExVEx.Packaging.Zip.Entry.t()]) :: :ok | {:error, term()}