mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 09:39:12 -04:00
Fixed existing dir check (#1933)
This commit is contained in:
parent
762512b7dc
commit
5ae97d47f1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue