Skip to content

Commit

Permalink
Fixed existing dir check (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
jLynx authored Feb 25, 2024
1 parent 762512b commit 5ae97d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/application/usb_serial_shell_filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ae97d4

Please sign in to comment.