 |
ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
|
Go to the documentation of this file.
20 #include "../../include/esp3d_config.h"
21 #if defined (SD_DEVICE)
22 #include "../commands.h"
23 #include "../esp3doutput.h"
24 #include "../settings_esp3d.h"
25 #include "../../modules/authentication/authentication_service.h"
26 #include "../../modules/filesystem/esp_sd.h"
35 #ifdef AUTHENTICATION_FEATURE
37 output->
printERROR(
"Wrong authentication!", 401);
42 #endif //AUTHENTICATION_FEATURE
54 parameter =
get_param (cmd_params,
"mkdir=");
55 if (parameter.length() != 0) {
64 parameter =
get_param (cmd_params,
"rmdir=");
65 if (parameter.length() != 0) {
74 parameter =
get_param (cmd_params,
"remove=");
75 if (parameter.length() != 0) {
84 parameter =
get_param (cmd_params,
"exists=");
85 if (parameter.length() != 0) {
93 parameter =
get_param (cmd_params,
"create=");
94 if (parameter.length() != 0) {
#define ESP_SDCARD_NOT_PRESENT
const char * get_param(const char *cmd_params, const char *label)
static ESP_SDFile open(const char *path, uint8_t mode=ESP_FILE_READ)
static bool remove(const char *path)
static bool rmdir(const char *path)
static bool mkdir(const char *path)
bool ESP750(const char *cmd_params, level_authenticate_type auth_level, ESP3DOutput *output)
static uint8_t getState(bool refresh)
size_t printMSG(const char *s, bool withNL=true)
size_t printERROR(const char *s, int code_error=200)
static bool exists(const char *path)