---------------------------------------------------------------------------
| 84 | } |
| 85 | //--------------------------------------------------------------------------- |
| 86 | bool deleteFile(const std::string &name) |
| 87 | { |
| 88 | if (!fileExists(name)) return false; |
| 89 | try |
| 90 | { |
| 91 | remove(fs::path(uniformSlashes(name))); |
| 92 | } |
| 93 | catch (...) |
| 94 | { |
| 95 | return false; |
| 96 | } |
| 97 | return true; |
| 98 | } |
| 99 | |
| 100 | std::string uniformSlashes(const std::string &path) |
| 101 | { |
no test coverage detected