Copy a file to dst path.
223 {
225
227 {
228 std::stringstream ss;
229 ss << "File path: " << srcFilePath << " was not found.";
230
231 SPICES_CORE_WARN(ss.str())
232 return false;
233 }
234
235 std::ifstream src(srcFilePath,
std::ios::binary);
236 std::ofstream dst(dstFilePath,
std::ios::binary);
237
238 dst << src.rdbuf();
239
240 return true;
241 }
#define SPICES_PROFILE_ZONE
static bool FileLibrary_Exists(const char *path)
Determine whether the given string is existing a file.