diff --git a/src/os/shared/src/osapi-dir.c b/src/os/shared/src/osapi-dir.c index 7566aa606..0a296306e 100644 --- a/src/os/shared/src/osapi-dir.c +++ b/src/os/shared/src/osapi-dir.c @@ -248,7 +248,7 @@ int32 OS_rmdir(const char *path) return_code = OS_TranslatePath(path, local_path); if (return_code == OS_SUCCESS) { - OS_DirRemove_Impl(local_path); + return_code = OS_DirRemove_Impl(local_path); } return return_code;