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

Function fileCopy

Engine/Project.cpp:482–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480} // Project::saveProject_imp
481
482static bool
483fileCopy(const QString & source,
484 const QString & dest)
485{
486 QFile sourceFile(source);
487 QFile destFile(dest);
488 bool success = true;
489
490 success &= sourceFile.open( QFile::ReadOnly );
491 success &= destFile.open( QFile::WriteOnly | QFile::Truncate );
492 success &= destFile.write( sourceFile.readAll() ) >= 0;
493 sourceFile.close();
494 destFile.close();
495
496 return success;
497}
498
499static QStringList
500findBackups(const QString & filePath)

Callers 1

saveProjectInternalMethod · 0.85

Calls 3

openMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected