1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-09-19 13:33:39 +01:00
AIO-switch-updater/include/fs.hpp

18 lines
555 B
C++

#pragma once
#include <switch.h>
#include <json.hpp>
#include <set>
namespace fs {
bool removeDir(const std::string& path);
nlohmann::ordered_json parseJsonFile(const std::string& path);
void writeJsonToFile(nlohmann::json& data, const std::string& path);
bool copyFile(const std::string& from, const std::string& to);
std::string copyFiles(const std::string& path);
void createTree(std::string path);
std::set<std::string> readLineByLine(const std::string& path);
Result getFreeStorageSD(s64& free);
} // namespace fs