mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-12 17:37:37 +00:00
Fixed existing dir check (#1933)
This commit is contained in:
@@ -99,7 +99,7 @@ void cmd_sd_mkdir(BaseSequentialStream* chp, int argc, char* argv[]) {
|
|||||||
|
|
||||||
auto path = path_from_string8(argv[0]);
|
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");
|
chprintf(chp, "directory already exists.\r\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user