Android-cuttlefish cvd tool
Namespaces | Functions
zip_file.cc File Reference
#include "cuttlefish/host/libs/zip/zip_file.h"
#include <errno.h>
#include <stdint.h>
#include <sys/stat.h>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include "cuttlefish/files/file_exists.h"
#include "cuttlefish/host/libs/zip/libzip_cc/archive.h"
#include "cuttlefish/host/libs/zip/libzip_cc/readable_source.h"
#include "cuttlefish/host/libs/zip/libzip_cc/writable_source.h"
#include "cuttlefish/io/copy.h"
#include "cuttlefish/io/io.h"
#include "cuttlefish/io/native_filesystem.h"
#include "cuttlefish/posix/strerror.h"
#include "cuttlefish/result/result.h"
Include dependency graph for zip_file.cc:

Namespaces

namespace  cuttlefish
 

Functions

Result< ReadableZip > cuttlefish::ZipOpenRead (const std::string &fs_path)
 
Result< WritableZip > cuttlefish::ZipOpenReadWrite (const std::string &fs_path)
 
Result< void > cuttlefish::AddFile (WritableZip &zip, const std::string &fs_path)
 
Result< void > cuttlefish::AddFileAt (WritableZip &zip, const std::string &fs_path, const std::string &zip_path)
 
Result< void > cuttlefish::ExtractFile (ReadableZip &zip, std::string_view zip_path, const std::string &host_path)