From 5ae97d47f1080a6119dda9b4b2272ed72caecb67 Mon Sep 17 00:00:00 2001 From: jLynx Date: Sun, 25 Feb 2024 07:28:44 +0000 Subject: [PATCH] Fixed existing dir check (#1933) --- firmware/application/usb_serial_shell_filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/usb_serial_shell_filesystem.cpp b/firmware/application/usb_serial_shell_filesystem.cpp index db3231fdb..b16dc1c74 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; }