1
0
Fork 0
mirror of https://github.com/HamletDuFromage/sigpatches-updater.git synced 2024-11-12 23:16:42 +00:00
sigpatches-updater/libs/minizip/include/tools.h

21 lines
671 B
C
Raw Normal View History

2020-09-12 17:12:07 +01:00
#pragma once
#include <string>
#include <vector>
#include <istream>
namespace zipper
{
void getFileCrc(std::istream& input_stream, std::vector<char>& buff, unsigned long& result_crc);
bool isLargeFile(std::istream& input_stream);
bool checkFileExists(const std::string& filename);
bool makedir(const std::string& newdir);
void removeFolder(const std::string& foldername);
std::string parentDirectory(const std::string& filepath);
std::string currentPath();
bool isDirectory(const std::string& path);
std::vector<std::string> filesFromDirectory(const std::string& path);
std::string fileNameFromPath(const std::string& path);
}