Kagome
Polkadot Runtime Engine in C++17
directories.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_FILESYSTEM_DIRECTORIES_HPP
7 #define KAGOME_FILESYSTEM_DIRECTORIES_HPP
8 
9 #include "filesystem/common.hpp"
10 
11 namespace kagome::filesystem {
12 
18  inline bool createDirectoryRecursive(const path &path) {
19  return exists(path) || create_directories(path);
20  }
21 
22 } // namespace kagome::filesystem
23 
24 #endif // KAGOME_FILESYSTEM_DIRECTORIES_HPP
bool createDirectoryRecursive(const path &path)
Definition: directories.hpp:18