2021-03-16 14:56:46 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <switch.h>
|
2021-09-11 14:48:13 +01:00
|
|
|
|
2021-03-16 14:56:46 +00:00
|
|
|
#include <json.hpp>
|
2021-09-11 14:48:13 +01:00
|
|
|
#include <set>
|
2021-03-16 14:56:46 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
namespace fs {
|
2021-09-21 14:07:47 +01:00
|
|
|
bool removeDir(const std::string& path);
|
2021-05-22 17:10:34 +01:00
|
|
|
nlohmann::ordered_json parseJsonFile(const std::string& path);
|
2021-09-11 14:48:13 +01:00
|
|
|
void writeJsonToFile(nlohmann::json& data, const std::string& path);
|
2021-05-22 17:10:34 +01:00
|
|
|
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-09-11 14:48:13 +01:00
|
|
|
} // namespace fs
|