MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / BackupProject

Method BackupProject

Source/Editor/Editor.cpp:351–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351bool Editor::BackupProject()
352{
353 // Create backup directory
354 auto dstPath = Globals::ProjectFolder + TEXT(" - Backup");
355 {
356 int32 count = 0;
357 while (count < 1000 && FileSystem::DirectoryExists(dstPath))
358 {
359 dstPath = Globals::ProjectFolder + TEXT(" - Backup") + StringUtils::ToString(count++);
360 }
361 }
362
363 LOG(Info, "Backup project to \"{0}\"", dstPath);
364
365 // Copy everything
366 return FileSystem::CopyDirectory(dstPath, Globals::ProjectFolder);
367}
368
369int32 Editor::LoadProduct()
370{

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.50

Tested by

no test coverage detected