* Removes a file from the specified path. * @param path Full path to file. * @return True if the operation succeeded, False otherwise. */
| 642 | * @return True if the operation succeeded, False otherwise. |
| 643 | */ |
| 644 | bool deleteFile(const std::string &path) |
| 645 | { |
| 646 | #ifdef _WIN32 |
| 647 | return (DeleteFileA(path.c_str()) != 0); |
| 648 | #else |
| 649 | return (remove(path.c_str()) == 0); |
| 650 | #endif |
| 651 | } |
| 652 | |
| 653 | /** |
| 654 | * Gets the base filename of a path. |
no outgoing calls
no test coverage detected