Warning: session_start(): open(/var/lib/php/sessions/sess_hc4q1mpn8hkfsdjd88a2m24bb6, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static Lock appendToFile_lock = lock();
static void appendToFile(S path, S s) ctex {
lock appendToFile_lock; // Let's just generally synchronize this to be safe.
new File(path).getParentFile().mkdirs();
//print("[Logging to " + path + "]");
Writer writer = new BufferedWriter(new OutputStreamWriter(
newFileOutputStream(path, true), "UTF-8"));
writer.write(s);
writer.close();
}
static void appendToFile(File path, String s) {
if (path != null)
appendToFile(path.getPath(), s);
}