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

Method renameFile

trunk/win/Source/BT_JavaScriptAPI.cpp:612–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612bool JavaScriptAPI::renameFile(QString oldFileName, QString newFileName)
613{
614 QFile oldFile(winOS->GetUserApplicationDataPath().absoluteFilePath(oldFileName));
615 QFile newFile(winOS->GetUserApplicationDataPath().absoluteFilePath(newFileName));
616
617 if(oldFile.rename(newFile.fileName()))
618 return true;
619
620 return false;
621}
622
623// Launch the given URL in a web browser
624void JavaScriptAPI::openInBrowser( QString url )

Callers 2

RenameFileMethod · 0.45
onStateChangedMethod · 0.45

Calls 3

fileNameMethod · 0.80
renameMethod · 0.45

Tested by 1

onStateChangedMethod · 0.36