MCPcopy Create free account
hub / github.com/MrKepzie/Natron / fileCopy

Function fileCopy

Engine/Project.cpp:450–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448} // Project::saveProject_imp
449
450static bool
451fileCopy(const QString & source,
452 const QString & dest)
453{
454 QFile sourceFile(source);
455 QFile destFile(dest);
456 bool success = true;
457
458 success &= sourceFile.open( QFile::ReadOnly );
459 success &= destFile.open( QFile::WriteOnly | QFile::Truncate );
460 success &= destFile.write( sourceFile.readAll() ) >= 0;
461 sourceFile.close();
462 destFile.close();
463
464 return success;
465}
466
467QString
468Project::saveProjectInternal(const QString & path,

Callers 1

saveProjectInternalMethod · 0.85

Calls 3

openMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected