Helper to check if a file exists
| 47 | |
| 48 | // Helper to check if a file exists |
| 49 | static bool fileExists(const char* const filename) |
| 50 | { |
| 51 | return access(filename, F_OK) != -1; |
| 52 | } |
| 53 | |
| 54 | // Helper function to keep trying to write until it succeeds or really errors out |
| 55 | static ssize_t |