Class Zip

#include <Geode/utils/file.hpp>
classZip{ ... }
No description provided
Examples0
Public static methods2
staticgeode::Result<geode::utils::file::Zip>create()

Create zipper for file

staticgeode::Result<geode::utils::file::Zip>create()

Create zipper for in-memory data

Public member functions7
geode::utils::file::Zip::PathgetPath()const

Path to the created zip

Return value
The path to the zip that is being created, or an empty path if the zip was opened in memory
geode::ByteVectorgetData()const

Get the zipped data

geode::Result<>add(,)

Add an entry to the zip with data

geode::Result<>add(,)

Add an entry to the zip with string data

geode::Result<>addFrom(,)

Add an entry to the zip from a file on disk. If you want to add the file with a different name, read it into memory first and add it with Zip::add

Parameters

file

File on disk

entryDir

Folder to place the file in in the zip
geode::Result<>addAllFrom()

Add an entry to the zip from a directory on disk

Parameters

entry

Path in the zip

dir

Directory on disk
geode::Result<>addFolder()

Add a folder entry to the zip. If you want to add a folder from disk, use Zip::addAllFrom

Parameters

entry

Folder path in zip
Fields0
Protected member functions0
Protected fields0
Derived classes0