MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / renameFile

Method renameFile

JUCE/extras/Projucer/Source/Project/jucer_Project.cpp:1655–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1653}
1654
1655bool Project::Item::renameFile (const File& newFile)
1656{
1657 auto oldFile = getFile();
1658
1659 if (oldFile.moveFileTo (newFile)
1660 || (newFile.exists() && ! oldFile.exists()))
1661 {
1662 setFile (newFile);
1663 ProjucerApplication::getApp().openDocumentManager.fileHasBeenRenamed (oldFile, newFile);
1664 return true;
1665 }
1666
1667 return false;
1668}
1669
1670bool Project::Item::containsChildForFile (const build_tools::RelativePath& file) const
1671{

Callers 1

setNameMethod · 0.80

Calls 5

getFileFunction · 0.85
setFileFunction · 0.85
moveFileToMethod · 0.80
existsMethod · 0.45
fileHasBeenRenamedMethod · 0.45

Tested by

no test coverage detected