MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / moveByCopy

Function moveByCopy

launcher/FileSystem.cpp:653–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653bool moveByCopy(const QString& source, const QString& dest)
654{
655 if (!copy(source, dest)()) { // copy
656 qDebug() << "Copy of" << source << "to" << dest << "failed!";
657 return false;
658 }
659 if (!deletePath(source)) { // remove original
660 qDebug() << "Deletion of" << source << "failed!";
661 return false;
662 };
663 return true;
664}
665
666bool move(const QString& source, const QString& dest)
667{

Callers 1

moveFunction · 0.85

Calls 2

copyClass · 0.85
deletePathFunction · 0.85

Tested by

no test coverage detected