| 104 | } |
| 105 | |
| 106 | bool TryCreateDirectory(std::wstring const& path) |
| 107 | { |
| 108 | if (!PathFileExistsW(path.c_str())) { |
| 109 | return CreateDirectoryW(path.c_str(), NULL) == TRUE; |
| 110 | } else { |
| 111 | return true; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | bool SaveFile(std::wstring const& path, std::vector<uint8_t> const& body) |
| 116 | { |
no outgoing calls
no test coverage detected