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

Method moveFileTo

JUCE/modules/juce_core/files/juce_File.cpp:290–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290bool File::moveFileTo (const File& newFile) const
291{
292 if (newFile.fullPath == fullPath)
293 return true;
294
295 if (! exists())
296 return false;
297
298 #if ! NAMES_ARE_CASE_SENSITIVE
299 if (*this != newFile)
300 #endif
301 if (! newFile.deleteFile())
302 return false;
303
304 return moveInternal (newFile);
305}
306
307bool File::copyFileTo (const File& newFile) const
308{

Callers 5

runTestMethod · 0.80
installMethod · 0.80
renameFileMethod · 0.80

Calls 1

deleteFileMethod · 0.45

Tested by

no test coverage detected