mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-19 19:52:53 +00:00
23 lines
862 B
C++
23 lines
862 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <filesystem>
|
|
|
|
namespace utils::io {
|
|
bool remove_file(const std::string& file);
|
|
bool move_file(const std::string& src, const std::string& target);
|
|
bool file_exists(const std::string& file);
|
|
bool write_file(const std::string& file, const std::string& data,
|
|
bool append = false);
|
|
bool read_file(const std::string& file, std::string* data);
|
|
std::string read_file(const std::string& file);
|
|
size_t file_size(const std::string& file);
|
|
bool create_directory(const std::string& directory);
|
|
bool directory_exists(const std::string& directory);
|
|
bool directory_is_empty(const std::string& directory);
|
|
std::vector<std::string> list_files(const std::string& directory);
|
|
void copy_folder(const std::filesystem::path& src,
|
|
const std::filesystem::path& target);
|
|
} // namespace utils::io
|