 |
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 (FILESYSTEM_FEATURE)
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_filesystem.h"
35 #ifdef AUTHENTICATION_FEATURE
37 output->
printERROR(
"Wrong authentication!", 401);
42 #endif //AUTHENTICATION_FEATURE
43 parameter =
get_param (cmd_params,
"mkdir=");
44 if (parameter.length() != 0) {
53 parameter =
get_param (cmd_params,
"rmdir=");
54 if (parameter.length() != 0) {
63 parameter =
get_param (cmd_params,
"remove=");
64 if (parameter.length() != 0) {
73 parameter =
get_param (cmd_params,
"exists=");
74 if (parameter.length() != 0) {
82 parameter =
get_param (cmd_params,
"create=");
83 if (parameter.length() != 0) {
98 #endif //FILESYSTEM_FEATURE
const char * get_param(const char *cmd_params, const char *label)
bool ESP730(const char *cmd_params, level_authenticate_type auth_level, ESP3DOutput *output)
static bool remove(const char *path)
static bool mkdir(const char *path)
size_t printMSG(const char *s, bool withNL=true)
static bool rmdir(const char *path)
size_t printERROR(const char *s, int code_error=200)
static bool exists(const char *path)
static ESP_File open(const char *path, uint8_t mode=ESP_FILE_READ)