MCPcopy Create free account
hub / github.com/KDE/kdiff3 / createLocalCopy

Method createLocalCopy

src/fileaccess.cpp:1007–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007bool FileAccess::createLocalCopy()
1008{
1009 if(isLocal() || !m_localCopy.isEmpty() || !mPhysicalPath.isEmpty())
1010 return true;
1011
1012 tmpFile->setAutoRemove(true);
1013 tmpFile->open();
1014 tmpFile->close();
1015 m_localCopy = tmpFile->fileName();
1016
1017 return copyFile(tmpFile->fileName());
1018}
1019
1020//static tempfile Generator
1021void FileAccess::createTempFile(QTemporaryFile& tmpFile)

Callers 2

enterDirMethod · 0.45
readAndPreprocessMethod · 0.45

Calls 4

openMethod · 0.80
closeMethod · 0.80
fileNameMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected