Path to cached binaries.
| 42 | |
| 43 | // Path to cached binaries. |
| 44 | inline std::string program_binary_path(const std::string &hash, bool create = false) |
| 45 | { |
| 46 | std::string dir = detail::appdata_path() + path_delim() |
| 47 | + hash.substr(0, 2) + path_delim() |
| 48 | + hash.substr(2); |
| 49 | |
| 50 | if(create && !boost::filesystem::exists(dir)){ |
| 51 | boost::filesystem::create_directories(dir); |
| 52 | } |
| 53 | |
| 54 | return dir + path_delim(); |
| 55 | } |
| 56 | |
| 57 | // Path to parameter caches. |
| 58 | inline std::string parameter_cache_path(bool create = false) |
no test coverage detected