| 171 | } |
| 172 | |
| 173 | static bool removeFile(const fl::string& path) FL_NOEXCEPT { |
| 174 | // Silently succeed if file doesn't exist (cleanup idempotency) |
| 175 | if (::remove(path.c_str()) == 0) { |
| 176 | return true; |
| 177 | } |
| 178 | return errno == ENOENT; // Success if file didn't exist |
| 179 | } |
| 180 | |
| 181 | static void forceRemoveDirectory(const fl::string& path) FL_NOEXCEPT { |
| 182 | // Synchronously and recursively remove directory and all contents |
no test coverage detected