Create zipper for file
Class Zip
#include <Geode/utils/file.hpp>classZip{ ... }
No description provided
Examples0
Public static methods2
staticgeode::Result<geode::utils::file::Zip>create()
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
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(,geode::ByteSpandata)
Add an entry to the zip with data
geode::Result<>add(,std::string_viewdata)
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
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
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
entry
Folder path in zip