mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-12 11:47:40 +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]);
|
||||
|
||||
if (!std::filesystem::is_directory(path)) {
|
||||
if (std::filesystem::is_directory(path)) {
|
||||
chprintf(chp, "directory already exists.\r\n");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user