Initial Commit
This commit is contained in:
18
include/fs.hpp
Normal file
18
include/fs.hpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
#include <json.hpp>
|
||||
#include <set>
|
||||
|
||||
namespace fs {
|
||||
std::vector<std::string> splitString(const std::string& s, char delimiter);
|
||||
bool removeDir(const std::string& path);
|
||||
nlohmann::ordered_json parseJsonFile(const std::string& path);
|
||||
void writeJsonToFile(nlohmann::ordered_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
|
||||
Reference in New Issue
Block a user