rippled
Loading...
Searching...
No Matches
FileUtilities.h
1#ifndef XRPL_BASICS_FILEUTILITIES_H_INCLUDED
2#define XRPL_BASICS_FILEUTILITIES_H_INCLUDED
3
4#include <boost/filesystem.hpp>
5#include <boost/system/error_code.hpp>
6
7#include <optional>
8
9namespace ripple {
10
13 boost::system::error_code& ec,
14 boost::filesystem::path const& sourcePath,
16
17void
19 boost::system::error_code& ec,
20 boost::filesystem::path const& destPath,
21 std::string const& contents);
22
23} // namespace ripple
24
25#endif
T is_same_v
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
std::string getFileContents(boost::system::error_code &ec, boost::filesystem::path const &sourcePath, std::optional< std::size_t > maxSize=std::nullopt)
void writeFileContents(boost::system::error_code &ec, boost::filesystem::path const &destPath, std::string const &contents)