MCPcopy Create free account
hub / github.com/bumptop/BumpTop / removeIncompleteFile

Method removeIncompleteFile

trunk/win/Source/BT_FileTransferManager.cpp:683–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681}
682
683void FileTransferManager::removeIncompleteFile( const FileTransfer& transfer )
684{
685 if (transfer.shouldSaveToFile())
686 {
687 QFile localPath(transfer.getLocalPath());
688 if (exists(native(localPath)))
689 {
690 localPath.remove();
691 }
692 }
693}
694
695QString FileTransferManager::encodeParams( QHash<QString, QString> params )
696{

Callers 1

finishedReplyMethod · 0.80

Calls 5

shouldSaveToFileMethod · 0.80
getLocalPathMethod · 0.80
existsFunction · 0.70
nativeFunction · 0.70
removeMethod · 0.45

Tested by

no test coverage detected