1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-08 11:31:43 +00:00
AIO-switch-updater/include/fs.hpp

18 lines
529 B
C++
Raw Normal View History

2021-03-16 14:56:46 +00:00
#pragma once
#include <switch.h>
#include <set>
#include <json.hpp>
namespace fs
{
int removeDir(const char* 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);
2021-03-16 14:56:46 +00:00
void createTree(std::string path);
2021-06-03 17:47:35 +01:00
std::set<std::string> readLineByLine(const std::string& path);
Result getFreeStorageSD(s64& free);
2021-03-16 14:56:46 +00:00
}