49efcde301
CI / Build NRO (push) Successful in 29s
CI / Format check (push) Successful in 28s
CI / Layering check (push) Successful in 2s
CI / Build NRO (pull_request) Successful in 29s
CI / Format check (pull_request) Successful in 27s
CI / Layering check (pull_request) Successful in 1s
20 lines
688 B
C++
20 lines
688 B
C++
// Copyright (C) 2024-2026 NXST contributors
|
|
#pragma once
|
|
#include <string>
|
|
|
|
#include <switch.h>
|
|
|
|
#include <nxst/domain/result.hpp>
|
|
|
|
namespace io {
|
|
nxst::Result<std::string> backup(size_t index, AccountUid uid);
|
|
nxst::Result<std::string> restore(size_t index, AccountUid uid, const std::string& title_name);
|
|
|
|
Result copyDirectory(const std::string& src, const std::string& dst);
|
|
void copyFile(const std::string& src, const std::string& dst);
|
|
Result createDirectory(const std::string& path);
|
|
Result deleteFolderRecursively(const std::string& path);
|
|
bool directoryExists(const std::string& path);
|
|
bool fileExists(const std::string& path);
|
|
} // namespace io
|