| 288 | } |
| 289 | |
| 290 | bool 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 | |
| 307 | bool File::copyFileTo (const File& newFile) const |
| 308 | { |
no test coverage detected