 		message = String();
 	}
 #endif
+	log_dbg("out\r\n");
 }
 
 static String formatBytes(size_t bytes)

	output += "]";
	server->send(200, "text/json", output);
	path = String();
}

static void handleRoot(void)
{
	if (b_cfg_ready) {
		String message = String((const char *)g_nd.uid);
		message += " alive ";

		log_info("done, size: ");
		LOG_SERIAL.println(upload.totalSize);
	}
	log_dbg("out\r\n");
}

static void handleFileDelete(void)
{
	log_dbg("in\r\n");
	if (server->args() == 0)
		return server->send(500, "text/plain", "BAD ARGS");
	String path = server->arg(0);
	log_info("");
	LOG_SERIAL.println(path);
	if (path == "/") {
		log_dbg("out 500\r\n");
		return server->send(500, "text/plain", "BAD PATH");
	}
	if (!SPIFFS.exists(path)) {
		log_dbg("out 404\r\n");
		return server->send(404, "text/plain", "FileNotFound");
	}
	SPIFFS.remove(path);
	server->send(200, "text/plain", "");
	path = String();
	log_dbg("out\r\n");
}

static void handleFileCreate(void)
{
	log_dbg("in\r\n");
	if (server->args() == 0)
		return server->send(500, "text/plain", "BAD ARGS");
	String path = server->arg(0);
	log_info("");
	LOG_SERIAL.println(path);
	if (path == "/") {
		log_dbg("out 500 bad path\r\n");
		return server->send(500, "text/plain", "BAD PATH");
	}
	if (SPIFFS.exists(path)) {
		log_dbg("out 500 file exists\r\n");
		return server->send(500, "text/plain", "FILE EXISTS");
	}
	File file = SPIFFS.open(path, "w");
	if (file) {
		file.close();
	} else {
		log_dbg("out 500 failed\r\n");
		return server->send(500, "text/plain", "CREATE FAILED");
	}
	server->send(200, "text/plain", "");
	path = String();
	log_dbg("out\r\n");
}

static void handleFileList(void)
{
	String path;
	log_dbg("in\r\n");
	if (!server->hasArg("dir")) {
		path = String("/");
	} else {
		path = String(server->arg("dir"));
	}
	log_dbg("");
	LOG_SERIAL.println(path);
	Dir dir = SPIFFS.openDir(path);

