Fixed existing dir check (#1933)

This commit is contained in:
jLynx 2024-02-25 07:28:44 +00:00 committed by GitHub
parent 762512b7dc
commit 5ae97d47f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}