diff --git a/firmware/application/usb_serial_shell_filesystem.cpp b/firmware/application/usb_serial_shell_filesystem.cpp index db3231fd..b16dc1c7 100644 --- a/firmware/application/usb_serial_shell_filesystem.cpp +++ b/firmware/application/usb_serial_shell_filesystem.cpp @@ -99,7 +99,7 @@ void cmd_sd_mkdir(BaseSequentialStream* chp, int argc, char* argv[]) { auto path = path_from_string8(argv[0]); - if (!std::filesystem::is_directory(path)) { + if (std::filesystem::is_directory(path)) { chprintf(chp, "directory already exists.\r\n"); return; }