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