MCPcopy Create free account
hub / github.com/beefytech/Beef / CopyFile

Method CopyFile

BeefBoot/BootApp.cpp:633–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633bool BootApp::CopyFile(const StringImpl& srcPath, const StringImpl& destPath)
634{
635 BfpFileResult result = BfpFileResult_Ok;
636 for (int i = 0; i < 20; i++)
637 {
638 BfpFile_Copy(srcPath.c_str(), destPath.c_str(), BfpFileCopyKind_Always, &result);
639 if (result == BfpFileResult_Ok)
640 return true;
641 BfpThread_Sleep(100);
642 }
643 Fail(StrFormat("Failed to copy '%s' to '%s'", srcPath.c_str(), destPath.c_str()));
644 return false;
645}
646
647#ifdef BF_PLATFORM_WINDOWS
648void BootApp::DoLinkMS()

Callers

nothing calls this directly

Calls 4

FailFunction · 0.85
BfpFile_CopyFunction · 0.50
BfpThread_SleepFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected