Kagome
Polkadot Runtime Engine in C++17
util.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_APPLICATION_UTIL_HPP
7 #define KAGOME_APPLICATION_UTIL_HPP
8 
9 #include <boost/filesystem.hpp>
10 
11 #include "outcome/outcome.hpp"
12 
13 namespace kagome::application::util {
14 
15  enum class Error {
17  NOT_A_DIR,
18  };
19 
20  outcome::result<void> init_directory(const boost::filesystem::path &path);
21 
22 } // namespace kagome::application::util
23 
25 
26 #endif // KAGOME_UTIL_HPP
OUTCOME_HPP_DECLARE_ERROR(kagome::application::util, Error)
outcome::result< void > init_directory(const boost::filesystem::path &path)
Definition: util.cpp:30